On this test program:
def func():
foo = (
(1, 2)
(3, 4)
)
Command python -m py_compile my_script.py
warns "SyntaxWarning: 'tuple' object is not callable; perhaps you missed a comma?" and pylint --disable=all --enable=E1102 my_script.py
outputs "E1102: (1, 2) is not callable (not-callable)".
But flake8
shows no errors or warnings. How can I set it to catch (output or warn) not-callable declaration?
I'm using:
3.7.9 (mccabe: 0.6.1, pycodestyle: 2.5.0, pyflakes: 2.1.1) CPython 3.8.2 on Linux (WSL2)