forked from mozilla/treeherder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.cfg
30 lines (29 loc) · 1.15 KB
/
setup.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
[flake8]
exclude = */.*/,.*/,__pycache__,node_modules
# E129: visually indented line with same indent as next logical line
# E203 whitespace before ':'
# E231: missing whitespace after ','
# E501: line too long
extend_ignore = E129,E203,E231,E501
max-line-length = 100
[tool:pytest]
testpaths = tests
norecursedirs = __pycache__ ui
DJANGO_SETTINGS_MODULE=tests.settings
# Enable display of skipped/expected fail test reasons.
# Disable unused auto-loaded mozlog plugin.
addopts = -rsx -p no:mozlog
# Make most warnings fatal (including the hidden by default DeprecationWarning):
# https://docs.pytest.org/en/latest/warnings.html
# https://docs.python.org/3.7/library/warnings.html#warning-categories
filterwarnings =
error
ignore::ImportWarning
ignore::PendingDeprecationWarning
# WhiteNoise warns if either `.django-static/` or `.build/` do not exist at startup,
# 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
markers =
slow: mark a test as slow.
xfail_strict = true