Skip to content

Commit f6bd584

Browse files
committed
DOC: Ensure basic flake8 diff checks only Python
Follow-up to pandas-devgh-15749
1 parent aa9d0cf commit f6bd584

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/PULL_REQUEST_TEMPLATE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
- [ ] closes #xxxx
22
- [ ] tests added / passed
3-
- [ ] passes ``git diff upstream/master | flake8 --diff``
3+
- [ ] passes ``git diff upstream/master --name-only -- '*.py' | flake8 --diff``
44
- [ ] whatsnew entry

doc/source/contributing.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ Travis-CI will run the `flake8 <http://pypi.python.org/pypi/flake8>`_ tool
518518
and report any stylistic errors in your code. Therefore, it is helpful before
519519
submitting code to run the check yourself on the diff::
520520

521-
git diff master | flake8 --diff
521+
git diff master --name-only -- '*.py' | flake8 --diff
522522

523523
This command will catch any stylistic errors in your changes specifically, but
524524
be beware it may not catch all of them. For example, if you delete the only

0 commit comments

Comments
 (0)