mirror of
https://github.com/PyCQA/flake8.git
synced 2026-03-30 18:56:53 +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
e1de96f629
commit
5098ce89e3
1 changed files with 1 additions and 1 deletions
|
|
@ -18,7 +18,7 @@ _flake8_noqa = re.compile(r'\s*# flake8[:=]\s*noqa', re.I).search
|
|||
|
||||
EXTRA_EXCLUDE = ['.tox', '.eggs', '*.egg']
|
||||
|
||||
pep8.PROJECT_CONFIG += ('.flake8',)
|
||||
pep8.PROJECT_CONFIG = ('.flake8',) + pep8.PROJECT_CONFIG
|
||||
|
||||
|
||||
def _load_entry_point(entry_point, verify_requirements):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue