Skip to content

Integration of pydocstyle and flake8 for combined linting and reporting

License

Notifications You must be signed in to change notification settings

NMertsch/flake8-docstrings

 
 

Repository files navigation

flake8-docstrings

A simple module that adds an extension for the fantastic pydocstyle tool to flake8.

Simply install this extension:

pip install flake8-docstrings

and run flake8.

You can set the pydocstyle convention at the command line using:

$ flake8 --docstring-convention numpy ...

Or, adding docstring-convention=numpy to your flake8 configuration file. The available set of conventions depends on the version of pydocstyle installed. The default is pep257, pydocstyle v2.0.0 added numpy (for the numpydoc standard), while pydocstyle v4.0.0 added google.

In order to choose a custom list of error codes, use the special value docstring-convention=all, then choose the codes you want checked using flake8's built-in --ignore/--select functionality.

Report any issues on our bug tracker.

About

Integration of pydocstyle and flake8 for combined linting and reporting

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%