зеркало из https://github.com/mozilla/treeherder.git
37 строки
1.3 KiB
INI
37 строки
1.3 KiB
INI
[flake8]
|
|
exclude = .git,__pycache__,.vagrant,node_modules
|
|
# E129: visually indented line with same indent as next logical line
|
|
# E501: line too long
|
|
extend_ignore = E129,E501
|
|
max-line-length = 100
|
|
|
|
[isort]
|
|
skip = .git,__pycache__,.vagrant,node_modules,migrations
|
|
multi_line_output = 1
|
|
force_grid_wrap = true
|
|
line_length = 100
|
|
|
|
[tool:pytest]
|
|
testpaths = tests
|
|
norecursedirs = __pycache__ ui
|
|
DJANGO_SETTINGS_MODULE=tests.settings
|
|
# 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
|
|
# 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
|
|
sensitive_url = mozilla\.org
|