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

Support per-module disables #871

Closed
eddie-dunn opened this issue Apr 13, 2016 · 2 comments
Closed

Support per-module disables #871

eddie-dunn opened this issue Apr 13, 2016 · 2 comments

Comments

@eddie-dunn
Copy link

I would like to disable a set of warnings for modules in a specific
folder.

Why? We have a Python project laid out like this:

    project/
    ├── .pylintrc
    ├── module1.py
    ├── module2.py
    └── tests/
        ├── test_module1.py
        └── test_module2.py

Our unit and function tests reside in the folder called tests/. When it comes to tests the pylint warnings missing-docstring, invalid-name and protected-access are not relevant. On the other hand, these warnings are very useful for the actual code in the project.

Also, we would like to avoid adding #-disable boilerplate inside every single file; preferably we would like to add the folder-specific disables in the project's pylintrc-file. E.g, something along the lines of

 folder-disabled=tests/:invalid-name,protected-access

in the pylintrc.

@kernc
Copy link

kernc commented Apr 19, 2016

Blocked on and superseded by #618 and #175 (comment).

@AWhetter
Copy link
Contributor

As @kernc mentioned, this is a duplicate of #618. It's actively being worked on so should be solved soon!

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

3 participants