2015-01-16 19:30:57 +03:00
|
|
|
[flake8]
|
2020-02-05 22:55:03 +03:00
|
|
|
exclude = */.*/,.*/,__pycache__,node_modules
|
2018-10-29 12:44:34 +03:00
|
|
|
# E129: visually indented line with same indent as next logical line
|
2020-04-21 17:35:59 +03:00
|
|
|
# E203 whitespace before ':'
|
|
|
|
# E231: missing whitespace after ','
|
2018-10-29 12:44:34 +03:00
|
|
|
# E501: line too long
|
2020-04-21 17:35:59 +03:00
|
|
|
extend_ignore = E129,E203,E231,E501
|
2018-10-29 12:44:34 +03:00
|
|
|
max-line-length = 100
|
2015-09-21 23:56:37 +03:00
|
|
|
|
2017-06-05 19:45:08 +03:00
|
|
|
[tool:pytest]
|
2017-06-05 19:53:18 +03:00
|
|
|
testpaths = tests
|
2018-01-22 14:47:36 +03:00
|
|
|
norecursedirs = __pycache__ ui
|
2017-06-05 19:45:08 +03:00
|
|
|
DJANGO_SETTINGS_MODULE=tests.settings
|
2018-10-29 20:07:38 +03:00
|
|
|
# Enable display of skipped/expected fail test reasons.
|
|
|
|
# Disable unused auto-loaded mozlog plugin.
|
2020-12-21 23:54:07 +03:00
|
|
|
addopts = -rsx -p no:mozlog
|
2018-04-11 04:22:14 +03:00
|
|
|
# Make most warnings fatal (including the hidden by default DeprecationWarning):
|
|
|
|
# https://docs.pytest.org/en/latest/warnings.html
|
2022-05-16 21:30:31 +03:00
|
|
|
# https://docs.python.org/3.8/library/warnings.html#warning-categories
|
2018-04-11 04:22:14 +03:00
|
|
|
filterwarnings =
|
|
|
|
error
|
|
|
|
ignore::ImportWarning
|
|
|
|
ignore::PendingDeprecationWarning
|
2018-11-16 22:18:18 +03:00
|
|
|
# WhiteNoise warns if either `.django-static/` or `.build/` do not exist at startup,
|
2018-08-14 02:03:23 +03:00
|
|
|
# however this is expected when running tests since Django collectstatic and yarn build
|
|
|
|
# (which create those directories) typically aren't run apart from during deployments.
|
|
|
|
ignore:No directory at.*:UserWarning:whitenoise.base
|
2017-06-05 19:45:08 +03:00
|
|
|
markers =
|
|
|
|
slow: mark a test as slow.
|
2017-11-17 12:48:05 +03:00
|
|
|
xfail_strict = true
|