-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
--recursive=y
ignores ignore-paths
#6964
Comments
@matusvalo Didn't you fix this recently? Or was this a case we overlooked? |
I will check |
I am not able to replicate the issue:
I cannot verify the issue on windows.
|
@Avasam could you provide simple reproducer for the issue? |
I too thought this was fixed by #6528. I'll try to come up with a simple repro. In the mean time, this is my project in question: https://github.com/Avasam/Auto-Split/tree/camera-capture-split-cam-option |
@matusvalo I think I've run into a similar (or possibly the same) issue. Trying to reproduce with your example:
EDIT: Just upgraded to 2.14.3, and still seems to report the same. |
Hmm I can reproduce your error, and now I understand the root cause. The root cause is following. The decision of skipping the path is here:
(Pdb) p root
'src/gen'
(Pdb) p self.config.ignore_paths
[re.compile('^src\\\\gen\\\\.*$|^src/gen/.*$')]
(Pdb) p root
'./src/gen'
(Pdb) p self.config.ignore_paths
[re.compile('^src\\\\gen\\\\.*$|^src/gen/.*$')] In the second case, the source is prefixed with |
New pylint 2.14.4 includes fix for pylint-dev/pylint#6964, this results in our pylint configuration for `ignore-paths` is no longer valid (`./.tox` => `.tox`) and pylint fails on checking not related projects from `.tox` directory: > ERROR: InvocationError for command /home/runner/work/pyproject_installer/pyproject_installer/.tox/pylint/bin/python -m pylint -v --rcfile=/home/runner/work/pyproject_installer/pyproject_installer/pyproject.toml . (exited with code 30) Fixes: #11 Signed-off-by: Stanislav Levin <[email protected]>
New pylint 2.14.4 includes fix for pylint-dev/pylint#6964, this results in our pylint configuration for `ignore-paths` is no longer valid (`./.tox` => `.tox`) and pylint fails on checking not related projects from `.tox` directory: > ERROR: InvocationError for command /home/runner/work/pyproject_installer/pyproject_installer/.tox/pylint/bin/python -m pylint -v --rcfile=/home/runner/work/pyproject_installer/pyproject_installer/pyproject.toml . (exited with code 30) Fixes: #11 Signed-off-by: Stanislav Levin <[email protected]>
New pylint 2.14.4 includes fix for pylint-dev/pylint#6964, this results in our pylint configuration for `ignore-paths` is no longer valid (`./.tox` => `.tox`) and pylint fails on checking not related projects from `.tox` directory: > ERROR: InvocationError for command /home/runner/work/tox-console-scripts/tox-console-scripts/.tox/pylint/bin/python -m pylint -v --rcfile=/home/runner/work/tox-console-scripts/tox-console-scripts/pyproject.toml . (exited with code 30) Fixes: #20 Signed-off-by: Stanislav Levin <[email protected]>
New pylint 2.14.4 includes fix for pylint-dev/pylint#6964, this results in our pylint configuration for `ignore-paths` is no longer valid (`./.tox` => `.tox`) and pylint fails on checking not related projects from `.tox` directory: > ERROR: InvocationError for command /home/runner/work/tox-console-scripts/tox-console-scripts/.tox/pylint/bin/python -m pylint -v --rcfile=/home/runner/work/tox-console-scripts/tox-console-scripts/pyproject.toml . (exited with code 30) Fixes: #20 Signed-off-by: Stanislav Levin <[email protected]>
New pylint 2.14.4 includes fix for pylint-dev/pylint#6964, this results in our pylint configuration for `ignore-paths` is no longer valid (`./.tox` => `.tox`) and pylint fails on checking not related projects from `.tox` directory: > ERROR: InvocationError for command /home/runner/work/tox-no-deps/tox-no-deps/.tox/pylint/bin/python -m pylint -v --rcfile=/home/runner/work/tox-no-deps/tox-no-deps/pyproject.toml . (exited with code 30) Fixes: #9 Signed-off-by: Stanislav Levin <[email protected]>
New pylint 2.14.4 includes fix for pylint-dev/pylint#6964, this results in our pylint configuration for `ignore-paths` is no longer valid (`./.tox` => `.tox`) and pylint fails on checking not related projects from `.tox` directory: > ERROR: InvocationError for command /home/runner/work/tox-no-deps/tox-no-deps/.tox/pylint/bin/python -m pylint -v --rcfile=/home/runner/work/tox-no-deps/tox-no-deps/pyproject.toml . (exited with code 30) Fixes: #9 Signed-off-by: Stanislav Levin <[email protected]>
Bug description
When running recursively, it seems
ignore-paths
in my settings in pyproject.toml is completely ignoredConfiguration
Command used
Pylint output
Expected behavior
src\gen* should not be checked
Pylint version
OS / Environment
Windows 10.0.19044
Additional dependencies
No response
The text was updated successfully, but these errors were encountered: