mirror of
https://github.com/PyCQA/flake8.git
synced 2026-03-29 10:36:53 +00:00
Only force files to be included when run from CLI
Previously we added support so users can do:
$ flake8 bin/executable
But this broke the fact that git hooks shouldn't check things like
reStructuredText doc files. This commit restores that functionality but
will cause bin/executable to be ignored in the git hook. This seems fair
since folks can amend their filename patterns to include it explicitly.
Closes #268
This commit is contained in:
parent
f8fbc11fad
commit
e4582ef4e7
5 changed files with 34 additions and 15 deletions
|
|
@ -3,7 +3,11 @@
|
|||
|
||||
You can view the `3.3.0 milestone`_ on GitLab for more details.
|
||||
|
||||
- Fix problem where hooks should only check \*.py files. (See also
|
||||
`GitLab#268`_)
|
||||
|
||||
.. links
|
||||
.. _3.3.0 milestone:
|
||||
https://gitlab.com/pycqa/flake8/milestones/16
|
||||
.. _GitLab#268:
|
||||
https://gitlab.com/pycqa/flake8/issues/268
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue