From e4582ef4e767ca7498cf42bdf8772b82dcf0ded3 Mon Sep 17 00:00:00 2001 From: Ian Cordasco Date: Wed, 23 Nov 2016 16:36:26 -0600 Subject: 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 --- docs/source/release-notes/3.3.0.rst | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'docs/source') diff --git a/docs/source/release-notes/3.3.0.rst b/docs/source/release-notes/3.3.0.rst index 4c1747b..ed9f171 100644 --- a/docs/source/release-notes/3.3.0.rst +++ b/docs/source/release-notes/3.3.0.rst @@ -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 -- cgit v1.2.1