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-patterns does not skip non-top-level directories. #2541

Closed
natedogith1 opened this issue Oct 10, 2018 · 0 comments · Fixed by #4516
Closed

ignore-patterns does not skip non-top-level directories. #2541

natedogith1 opened this issue Oct 10, 2018 · 0 comments · Fixed by #4516
Labels

Comments

@natedogith1
Copy link

Steps to reproduce

  1. create a a/b/c.py (where c.py will generate a pylint message, so that we get output) (along with the appropriate __init__.py files)
  2. Run pylint: pylint --ignore-patterns=b
  3. Run pylint: pylint --ignore-patterns=a

Current behavior

c.py is skipped for ignore-patterns=a, but not for ignore-patterns=b

Expected behavior

c.py should be skipped for both

pylint --version output

pylint 2.1.1
astroid 2.1.0-dev
Python 3.6.3 (v3.6.3:2c5fed8, Oct 3 2017, 17:26:49) [MSC v.1900 32 bit (Intel)]

bernardn pushed a commit to bernardn/pylint that referenced this issue Nov 21, 2019
bernardn pushed a commit to bernardn/pylint that referenced this issue Nov 21, 2019
bernardn pushed a commit to bernardn/pylint that referenced this issue Nov 21, 2019
bernardn pushed a commit to bernardn/pylint that referenced this issue Nov 21, 2019
bernardn pushed a commit to bernardn/pylint that referenced this issue Nov 21, 2019
bernardn pushed a commit to bernardn/pylint that referenced this issue Jul 13, 2020
List of regex matching against the full path

Close pylint-dev#2541
bernardn pushed a commit to bernardn/pylint that referenced this issue Jul 13, 2020
List of regex matching against the full path

Close pylint-dev#2541

foo
bernardn pushed a commit to bernardn/pylint that referenced this issue Jul 13, 2020
List of regex matching against the full path

Close pylint-dev#2541
bernardn pushed a commit to bernardn/pylint that referenced this issue Jul 13, 2020
List of regex matching against the full path

Close pylint-dev#2541
bernardn added a commit to bernardn/pylint that referenced this issue Jul 13, 2020
List of regex matching against the full path

Close pylint-dev#2541
fdamken pushed a commit to fdamken/pylint that referenced this issue May 26, 2021
List of regex matching against the full path

Close pylint-dev#2541
Pierre-Sassoulas added a commit that referenced this issue May 27, 2021
* Add ``ignore-paths`` configuration directive

List of regex matching against the full path

Close #2541

* Adjusted previous changes for current pylint version.

Co-authored-by: Bernard Nauwelaerts <bernard@cybernet.be>
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants