mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-05 20:46:54 +00:00
Prefer .flake8 if present for options.
If somebody explicitly has a `.flake8` file, presumably they intend to put flake8 configuration in it, so prefer it to the generic `setup.cfg` and `tox.ini` from pycodestyle.
This commit is contained in:
parent
00575214db
commit
db9d4ad8b4
2 changed files with 20 additions and 18 deletions
|
|
@ -41,7 +41,9 @@ class ConfigFileFinder(object):
|
|||
self.program_name = program_name
|
||||
|
||||
# List of filenames to find in the local/project directory
|
||||
self.project_filenames = ('setup.cfg', 'tox.ini', self.program_config)
|
||||
self.project_filenames = (
|
||||
self.program_config,
|
||||
) + self.PROJECT_FILENAMES
|
||||
|
||||
self.local_directory = os.path.abspath(os.curdir)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue