-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Add a way to ignore by full path, not basename #2279
Comments
Yes, definitely, sounds like a good enhancement. |
The best and simplest way is to provide a Example:
We can also make This technique is used by many tools. You can take a look with You may want to use a dedicated ignore parser for that. I found one: https://github.com/mherrmann/gitignore_parser |
@matusvalo do you think we can close this one ? |
I think we can close it.
It is not 100% due #5398 but should work. |
@matusvalo @Pierre-Sassoulas the What about the |
@soullivaneuh could you open a new enhancement issue for taking the |
@Pierre-Sassoulas sure! Please consider #7371. Thanks! |
Background info:
I have adopted a rickety old Python codebase and I'm in the process of cleaning it up. I'm using a number of code quality tools including pylint, flake8, and mypy. My process for each checker has been to set up sane default rules, and an ignore list explicitly ignoring all files in the project. Then one by one I clean a file and remove the exclusion.
Unfortunately that won't work for pylint because according to the latest docs both
ignore
andignore-patterns
only look at base names, not full paths. My exclude list for flake8 looks something like this:I don't see any way in Pylint to ignore only e.g. auth/views.py, while enforcing rules in dashboard/views.py. Pylint is the only tool I couldn't manage to configure in a way that supports cleaning things up progressively.
I would like to use Pylint on this project. Is there a chance the options could be expanded to support this use case?
The text was updated successfully, but these errors were encountered: