diff --git a/doc/source/contributing.rst b/doc/source/contributing.rst index 7961780d0c79b..cd1c004666dae 100644 --- a/doc/source/contributing.rst +++ b/doc/source/contributing.rst @@ -527,7 +527,7 @@ unused function. However, style-checking the diff will not catch this because the actual import is not part of the diff. Thus, for completeness, you should run this command, though it will take longer:: - git diff master --name-only -- '*.py' | grep 'pandas' | xargs -r flake8 + git diff master --name-only -- '*.py' | grep 'pandas/' | xargs -r flake8 Backwards Compatibility ~~~~~~~~~~~~~~~~~~~~~~~