You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Adopt flake8-docstrings to run pydocstyle via flake8 #1199
Once it has been updated for pydocstyle v2.0.0, I propose we use flake8-docstrings to run the docstring (PEP257) checks via flake8 instead of calling pydocstyle.
i.e. For both the TravisCI/Tox configuration and the proposed git pre-commit hook.
The advantage of this is we can get ride of our .pydocstyle configuration file and move those settings into .flake8 and then just need to run a single tool for the style checks.
Activity
MarkusPiotrowski commentedon Apr 28, 2017
I adopted the fix mentioned in https://gitlab.com/nightmarebadger/flake8-docstrings/commit/8ffc68a821fd3b89641c10c3086d6672e04f5bf4 manually. These are just a few lines and it worked fine. Used
flake8-docstringsfor the recent work onRestriction.pyas pre-commit hook locally.peterjc commentedon Apr 28, 2017
That's good news. If we can get all the python code checks via
flake8, then a standard flake8 pre-commit git hook ought to be enough for Biopython.Right now on #1188 I have an overly complicated script which does
flake8andpydocstyleon changed Python files, plusrst-linton changed RST files.peterjc commentedon May 1, 2017
flake8-docstrings v1.0.1 has been released now, testing now...
peterjc commentedon May 1, 2017
Note right now the flake8 provided git pre-commit hook is unusable as it doesn't restrict itself to just Python files: https://gitlab.com/pycqa/flake8/issues/325