Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore does not work for pylint issue #245

Open
steiger08 opened this issue Jun 12, 2023 · 0 comments
Open

Ignore does not work for pylint issue #245

steiger08 opened this issue Jun 12, 2023 · 0 comments

Comments

@steiger08
Copy link

steiger08 commented Jun 12, 2023

Summary:
Despite being ignored via pylama.ini/cli parameter, W1203 is shown anyway.

Context:
(pylama: [pylama==8.4.1 pylint==2.17.2 pycodestyle==2.10.0 pyflakes==3.0.1 mypy==1.2.0)

CLI call:
pylama -v --options=./pylama.ini /builds/tools/test-automation/sowat/hades/hades/doc.py

Log:

Try to read configuration from: './pylama.ini'
Namespace(abspath=False, concurrent=False, exclude='.git,pycache,docs,old,build,dist', file_params={re.compile('(?s:.*/init\.py)\Z'): {'ignore': 'W0611'}}, format='pycodestyle', from_stdin=False, hook=False, ignore=set(), linters=['mccabe', 'pycodestyle', 'pyflakes', 'pylint', 'mypy'], linters_params={'mccabe': {'max-complexity': 10}, 'pycodestyle': {'ignore': 'E261,E266,W504,E402,', 'max_line_length': 120}, 'pylint': {'ignore': 'E0402,E1136,C0301,W1202,R0913,R0904,W0107,R1705,R1720,R0903,W1203', 'jobs': 4, 'bad-names': 'foo,\nbar,', 'disable': 'no-member,\nmissing-docstring', 'good-names': 'logger,\nlog_config,\nex', 'max_line_length': 120, 'module-naming-style': 'any', 'logging-format-style': 'new', 'notes': 'TODO', 'variable-rgx': '[a-z_][a-z0-9_]{2,30}$|[a-z_]', 'extension-pkg-whitelist': 'clr'}}, max_complexity=10, max_line_length=100, options='./pylama.ini', paths=['/builds/tools/test-automation/sowat/hades/hades/doc.py', '/builds/tools/test-automation/sowat/hades/hades/libraries/variant_management/navcore/variants.py'], pydocstyle_convention=None, pylint_confidence=None, report=None, select=set(), sort=None, verbose=True)

Result:
Run [mccabe] hades/doc.py
Run [pycodestyle] hades/doc.py
Run [pyflakes] hades/doc.py
Run [pylint] hades/doc.py
Run [mypy] hades/doc.py
hades/doc.py:77:17 W1203 Use lazy % formatting in logging functions [pylint]

Different case, similar setup/behaviour:
pylama -i C,R,W1203 ./hades/doc.py
hades/doc.py:77:17 W1203 Use lazy % formatting in logging functions [pylint]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant