pylint linter is ignored when pylama is run under pytest
See original GitHub issuei have this in tox.ini
[pytest]
norecursedirs = build .* .env media static deployment
addopts = -vvl --pylama
DJANGO_SETTINGS_MODULE=pdt.settings_test
[pylama]
format = pep8
skip = */.tox/*,*/.env/*,pdt/core/migrations/*
linters = pylint,mccabe,pep8,pep257
ignore = F0401,C0111,E731,D100
[pylama:pep8]
max_line_length = 120
when i run tests:
─[0] <git:(master 3b9152f✱✈) > py.test tests
=============================================================================================== test session starts ===============================================================================================
platform linux -- Python 3.4.0 -- py-1.4.26 -- pytest-2.7.0 -- /home/vagrant/workspace/pdt/.env/bin/python3
cachedir: /home/vagrant/workspace/pdt/.cache
rootdir: /home/vagrant/workspace/pdt, inifile: tox.ini
plugins: pep257, cache, pep8, django, pylama, cov
collected 7 items
tests/__init__.py SKIPPED
tests/conftest.py SKIPPED
tests/api/__init__.py SKIPPED
tests/api/test_api.py SKIPPED
tests/api/test_api.py::test_migration_filter_exclude_status PASSED
tests/api/test_api.py::test_migration_filter_status PASSED
tests/api/test_api.py::test_migration_filter_ci_project PASSED
======================================================================================= 3 passed, 4 skipped in 0.85 seconds =======================================================================================
but when i run pylama separately:
└─[0] <git:(master 3b9152f✱) > pylama tests
tests/conftest.py:19:23: W0622 Redefining built-in 'type' [pylint]
tests/conftest.py:51:19: W0621 Redefining name 'ci_project_name' from outer scope (line 39) [pylint]
tests/conftest.py:51:36: W0621 Redefining name 'ci_project_description' from outer scope (line 45) [pylint]
tests/conftest.py:69:50: W0621 Redefining name 'ci_project' from outer scope (line 51) [pylint]
tests/conftest.py:69:13: W0621 Redefining name 'instance_name' from outer scope (line 57) [pylint]
tests/conftest.py:69:28: W0621 Redefining name 'instance_description' from outer scope (line 63) [pylint]
tests/conftest.py:71:0: C0301 Line too long (111/100) [pylint]
tests/conftest.py:87:12: W0621 Redefining name 'release_name' from outer scope (line 75) [pylint]
tests/conftest.py:87:26: W0621 Redefining name 'release_date' from outer scope (line 81) [pylint]
tests/conftest.py:111:9: W0621 Redefining name 'case_id' from outer scope (line 93) [pylint]
tests/conftest.py:111:48: W0621 Redefining name 'ci_project' from outer scope (line 51) [pylint]
tests/conftest.py:111:30: W0621 Redefining name 'case_description' from outer scope (line 105) [pylint]
tests/conftest.py:111:18: W0621 Redefining name 'case_title' from outer scope (line 99) [pylint]
tests/conftest.py:111:60: W0621 Redefining name 'release' from outer scope (line 87) [pylint]
tests/conftest.py:114:0: C0301 Line too long (107/100) [pylint]
tests/conftest.py:121:28: W0108 Lambda may not be necessary [pylint]
tests/conftest.py:144:27: W0108 Lambda may not be necessary [pylint]
tests/conftest.py:156:28: W0108 Lambda may not be necessary [pylint]
tests/conftest.py:166:28: W0108 Lambda may not be necessary [pylint]
tests/api/test_api.py:31:0: C0330 Wrong hanging indentation. 'id': mr2.id, ^ | [pylint]
tests/api/test_api.py:32:0: C0330 Wrong hanging indentation. 'ci_project': migration.case.ci_project.name, ^ | [pylint]
tests/api/test_api.py:33:0: C0330 Wrong hanging indentation. 'instance': mr2.instance.name, ^ | [pylint]
tests/api/test_api.py:34:0: C0330 Wrong hanging indentation. 'status': mr2.status, ^ | [pylint]
tests/api/test_api.py:35:0: C0330 Wrong hanging indentation. 'datetime': equals_any, ^ | [pylint]
tests/api/test_api.py:36:0: C0330 Wrong hanging indentation. 'log': mr2.log}, ^ | [pylint]
tests/api/test_api.py:37:0: C0330 Wrong continued indentation. ] ^ | [pylint]
Issue Analytics
- State:
- Created 8 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Is it possible to ignore one single specific line with Pylint?
Pylint message control is documented in the Pylint manual: Is it possible to locally disable a particular message? Yes, this feature has been...
Read more >Pylama 8.4.1 documentation - GitHub Pages
The recommended way to set pylama options when using pytest — configuration files (see below). Writing a linter . You can write a...
Read more >Linting Python in Visual Studio Code
Linting is thus distinct from Formatting because linting analyzes how the code runs and detects errors whereas formatting only restructures how code appears....
Read more >Hypermodern Python 3: Linting - Medium
The most common ones for Python are pylint and the linter aggregators flake8, pylama, and prospector. There are also multi-language linter ...
Read more >pylama - Bountysource
Ignore a block of code (a function) that's considered by mccabe to be "too complex" ... As CoC has an option to pass...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
ok after cleaning the cache (.cache) it works as it should… so it’s again cache integration issue
@mzfr thanks!