IssueRaiser

Add different configuration for different sub directories

Originally reported by: **Fergal Hainey (BitBucket: [FerHai](http://bitbucket.org/FerHai))** --- I'm using pytest and redefined-outer-name is a false negative in these cases as it's part of pytest's design. I'd like to run pylint over the whole project to flag things automatically before code reviews. I'd like to catch cases of redefined-outer-name outside the tests folder. I could add comments to the modules but 1. that's a lot of comments and 2. changes will require changing as many comments. What could be nice is looking up through basedirs of the file being linted for pylintrc files and taking config in closer pylintrcs as higher priority. Or maybe something in the project wide pylintrc to denote some config applies to a directory. Would this be considered a good idea? I'm open to making a patch if it's considered worthwhile. --- - Bitbucket: https://bitbucket.org/logilab/pylint/issue/618

Posted by pylint-bot on Aug 10, 2015, 10:31 AM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.5,000 issues0 comments

github (Other)

Add different configuration for different sub directories

pylint-botAug 10, 2015, 10:31 AM

Originally reported by: **Fergal Hainey (BitBucket: [FerHai](http://bitbucket.org/FerHai))** --- I'm using pytest and redefined-outer-name is a false negative in these cases as it's part of pytest's design. I'd like to run pylint over the whole project to flag things automatically before code reviews. I'd like to catch cases of redefined-outer-name outside the tests folder. I could add comments to the modules but 1. that's a lot of comments and 2. changes will require changing as many comments. What could be nice is looking up through basedirs of the file being linted for pylintrc files and taking config in closer pylintrcs as higher priority. Or maybe something in the project wide pylintrc to denote some config applies to a directory. Would this be considered a good idea? I'm open to making a patch if it's considered worthwhile. --- - Bitbucket: https://bitbucket.org/logilab/pylint/issue/618

Comments (0)

No comments yet. Start the discussion.

Comment on this issue