2016-08-22 16:10:48 +03:00
|
|
|
[tool:pytest]
|
2016-04-08 10:21:52 +03:00
|
|
|
addopts = -vs --reuse-db --showlocals --tb=short
|
2014-11-19 19:36:40 +03:00
|
|
|
python_files=test*.py
|
|
|
|
markers =
|
|
|
|
es_tests: mark a test as an elasticsearch test.
|
2018-02-01 19:00:58 +03:00
|
|
|
needs_locales_compilation: mark a test as needing compiled locales to work.
|
2019-01-16 14:26:45 +03:00
|
|
|
allow_external_http_requests: mark a test to allow external http requests and disable responses.
|
2015-08-23 02:18:21 +03:00
|
|
|
norecursedirs =
|
|
|
|
node_modules locale static media site-static user-media tmp
|
|
|
|
templates fixtures migrations
|
2015-12-17 09:59:16 +03:00
|
|
|
.* *.egg dist cache venv __pycache__
|
2015-08-23 02:18:21 +03:00
|
|
|
DJANGO_SETTINGS_MODULE = settings_test
|
2018-09-26 10:08:30 +03:00
|
|
|
# Ignoring csp deprecation warnings,
|
|
|
|
# we have control over the module and currently it warns
|
|
|
|
# for child-src which is deprecated in CSPv3 but we're
|
|
|
|
# still on CSP 2 while CSP 3 is still in working draft (sept 2018)
|
|
|
|
filterwarnings =
|
|
|
|
default
|
|
|
|
ignore:::csp.utils
|
2015-12-08 22:11:38 +03:00
|
|
|
|
|
|
|
[flake8]
|
2018-11-05 15:39:42 +03:00
|
|
|
ignore = F999,F405,W504
|
2015-12-08 22:11:38 +03:00
|
|
|
exclude =
|
2015-12-16 11:46:10 +03:00
|
|
|
src/olympia/wsgi.py,
|
2015-12-08 22:11:38 +03:00
|
|
|
docs,
|
|
|
|
node_modules,
|
|
|
|
.npm,
|
|
|
|
build*.py
|
2015-12-08 22:15:50 +03:00
|
|
|
.tox,
|
|
|
|
media,
|
2018-11-05 15:39:42 +03:00
|
|
|
storage,
|
2015-12-08 22:15:50 +03:00
|
|
|
logs,
|
|
|
|
site-static,
|
|
|
|
static,
|
|
|
|
.git
|
2018-01-08 14:05:14 +03:00
|
|
|
|
|
|
|
[isort]
|
|
|
|
atomic=true
|
|
|
|
lines_after_imports=2
|
|
|
|
lines_between_types=1
|
|
|
|
multi_line_output=4
|
|
|
|
combine_as_imports = true
|
|
|
|
default_section = THIRDPARTY
|
|
|
|
include_trailing_comma = false
|
|
|
|
known_django = django
|
|
|
|
known_olympia = olympia
|
|
|
|
line_length = 79
|
|
|
|
sections=FUTURE,STDLIB,DJANGO,THIRDPARTY,OLYMPIA,FIRSTPARTY,LOCALFOLDER
|