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
|
|
|
|
# E501: line too long
|
|
|
|
extend_ignore = E129,E501
|
|
|
|
max-line-length = 100
|
2015-09-21 23:56:37 +03:00
|
|
|
|
|
|
|
[isort]
|
2020-02-12 22:45:46 +03:00
|
|
|
skip = __pycache__,node_modules,migrations
|
|
|
|
skip_glob = */.*/* # skip_glob uses full path matching, not prefix matching
|
2015-09-21 23:56:37 +03:00
|
|
|
multi_line_output = 1
|
|
|
|
force_grid_wrap = true
|
2018-10-29 12:44:34 +03:00
|
|
|
line_length = 100
|
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.
|
|
|
|
# Tell Selenium to use the Firefix driver.
|
|
|
|
# Disable unused auto-loaded mozlog plugin.
|
|
|
|
addopts = -rsx --driver Firefox -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
|
2019-02-28 23:24:02 +03:00
|
|
|
# https://docs.python.org/3.7/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
|
|
|
|
sensitive_url = mozilla\.org
|