Skip to content

Latest commit

 

History

History
153 lines (109 loc) · 5.29 KB

File metadata and controls

153 lines (109 loc) · 5.29 KB

flake8-params

A flake8 plugin which checks for mismatches between function signatures and docstring params.

Docs Documentation Build Status Docs Check Status
Tests Linux Test Status Windows Test Status macOS Test Status Coverage
PyPI PyPI - Package Version PyPI - Supported Python Versions PyPI - Supported Implementations PyPI - Wheel
Activity GitHub last commit GitHub commits since tagged version Maintenance PyPI - Downloads
QA CodeFactor Grade Flake8 Status mypy status
Other License GitHub top language Requirements Status

Installation

flake8-params can be installed from PyPI.

To install with pip:

$ python -m pip install flake8-params

flake8 codes

Code Description
PRM001 PRM001 Docstring parameters in wrong order.
PRM002 PRM002 Missing parameters in docstring.
PRM003 PRM003 Extra parameters in docstring.

Use as a pre-commit hook

See pre-commit for instructions

Sample .pre-commit-config.yaml:

- repo: https://gitlab.com/pycqa/flake8
  rev: 3.8.1
  hooks:
   - id: flake8
     additional_dependencies: [flake8-params==0.3.2]