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

Add the ability to do apply different flake8 rules to different parts of a code base #51

Open
adrianmoisey opened this issue Jan 6, 2015 · 1 comment

Comments

@adrianmoisey
Copy link
Contributor

I'm not sure if this is a good idea or not, but we're currently finding that we're linting different parts of code to different standards. It would be nice to have lint-review test different parts of our code with different rulesets.

Currently we just ignore the warnings from lint-review, or just disable those tests across the entire repo.

For example we're not as strict on docstrings in our tests because unittest sometimes uses the docstring as the test description (https://docs.python.org/2/library/unittest.html#unittest.TestCase.shortDescription).

@markstory
Copy link
Owner

You can ignore specific directories using the files.ignore config. Some linters support per directory config files for this purpose. Rubocop for example does this.

Why are different directories subject to different coding standards?

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

2 participants