diff --git a/requirements.txt b/requirements.txt index 2a4f557e3b..ee6899e92b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -33,6 +33,7 @@ django-weasyprint==1.0.1 # django weasyprint integration djangorestframework==3.12.4 # DRF framework django-xforwardedfor-middleware==2.0 # IP forwarding metadata flake8==3.8.3 # PEP checking +flake8-docstrings==1.6.0 # docstring format testing gunicorn>=20.1.0 # Gunicorn web server importlib_metadata # Backport for importlib.metadata inventree # Install the latest version of the InvenTree API python library diff --git a/setup.cfg b/setup.cfg index b4b0af8836..f57040d151 100644 --- a/setup.cfg +++ b/setup.cfg @@ -15,8 +15,11 @@ ignore = N806, # - N812 - lowercase imported as non-lowercase N812, + # - D415 - First line should end with a period, question mark, or exclamation point + D415, exclude = .git,__pycache__,*/migrations/*,*/lib/*,*/bin/*,*/media/*,*/static/* max-complexity = 20 +docstring-convention=google [coverage:run] source = ./InvenTree