extensions-website/setup.cfg

48 lines
1.3 KiB
INI

[flake8]
ignore=
#: Missing docstring in public module
D100,
#: Missing docstring in public class
D101,
#: Missing docstring in public method
D102,
D103,
#: Missing docstring in __init__
D107,
D205,
#: Missing docstring in magic method
D105,
#: 1 blank line required before class docstring
D203,
#: We adhere to D212 instead
D213,
#: All section formatting, which seems to be impossible to comply
D4,
#: We adhere to W504 instead: line break should be before binary operator
W503,
#: No docstring in public nested class (e.g. Meta)
D106,
extend-ignore = E203
max-line-length = 100
per-file-ignores =
manage.py:D
**/migrations/*:F401,D101,D103,D104,D100,E501
**/tests/*:D100,D101,D102,D202,E501
**/test_*:D100,D101,D102,D202,E501
# Avoid "what" docstrings in obvious utility modules
**/admin.py:D100,D101,D103
**/admin/*.py:D100,D101,D103
**/models.py:D100,D101,D102
**/models/*.py:D100,D101,D102
**/queries.py:D100
**/apps.py:D100,D101,D102
**/signals.py:D100
**/urls.py:D100
**/types.py:D100,D101,D102
**/__init__.py:D104
**/factories/*:D
# Enabled extra docstyle checks
docstring-convention=all
add-select =
D212, #: Multi-line docstring summary should start at the first line