53 lines
1.6 KiB
INI
53 lines
1.6 KiB
INI
[tool:pytest]
|
|
addopts = -v --cov bid_main --cov bid_api --cov bid_addon_support --cov-report term-missing
|
|
--ignore node_modules --ignore .git --ignore .cache --ignore build --ignore integration_tests
|
|
--reuse-db
|
|
DJANGO_SETTINGS_MODULE = blenderid.settings
|
|
python_files = tests.py test_*.py *_tests.py
|
|
|
|
[flake8]
|
|
max-line-length = 100
|
|
ignore=
|
|
# Missing docstring in public module
|
|
D100,
|
|
# Missing docstring in public function
|
|
D103,
|
|
# No blank lines allowed after function docstring
|
|
D202,
|
|
#: 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,
|
|
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
|
|
**/*_test.py: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
|
|
**/apps.py:D100,D101,D102
|
|
**/signals.py:D100
|
|
**/urls.py:D100
|
|
**/__init__.py:D104
|
|
**/factories/*:D
|
|
# Enabled extra docstyle checks
|
|
docstring-convention=all
|
|
add-select =
|
|
#: Multi-line docstring summary should start at the first line
|
|
D212,
|
|
|
|
[pep8]
|
|
max-line-length = 100
|