-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtox.ini
61 lines (53 loc) · 2.26 KB
/
tox.ini
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
[flake8]
# Black wraps at 88, but that's not always possible, so we set the limit a bit higher
# here.
max-line-length = 100
# Ignore:
# E111 indentation is not a multiple of four
# E114 indentation is not a multiple of four (comment)
# E121 continuation line under-indented for hanging indent
# E122 continuation line missing indentation or outdented
# E125 continuation line with same indent as next logical line
# E126 continuation line over-indented for hanging indent
# E127
# E131 continuation line unaligned for hanging indent
# E261 at least two spaces before inline comment
# E265 block comment should start with '# '
# E266 too many leading '#' for block comment - removing this because it triggers on script that is commented out
ignore = E111,E114,E121,E122,E125,E126,E127,E131,E261,E265,E266
[pytest]
# -ra: Show reason for skipped tests and additional test output summary
# --reuse-db: Avoid having to set up a new DB for each test run
# --capture=sys:
addopts = --capture=no -ra --reuse-db
testpaths = ./tests
python_files = test_*.py
norecursedirs = test_docs
# Prevent django-pytest from adding a syspath.
django_find_project = false
# pytest-django
DJANGO_SETTINGS_MODULE = settings.tests
# Set up logging for unit tests. We use a format that does not include timestamps, thread ids or
# other context that changes between runs, making it easy to check captured log sections with the
# sample system.
#
# As of early 2020, pytest does not support the modern format string types that are
# supported by the logging module.
#
# Fields can be forced to a fixed width with %(field)X.Xs, where X is the number of
# characters, but using it on the levelname breaks colorization for the level.
log_level = DEBUG
log_format = %(levelname)8s %(module)s %(message)s
log_date_format = ""
log_cli = True
log_cli_level = DEBUG
log_cli_format = %(levelname)8s %(module)s %(message)s
log_cli_date_format = ""
# Prevent printing double tracebacks. Tracebacks are printed by custom traceback
# formatter, called from d1_python.conftest.pytest_runtest_makereport().
;tb=no
#usedevelop = True
# Ignore a couple of deprecation warnings that we will address when we move to Py3
filterwarnings= default
ignore:.*is deprecated.*:Warning
error::DeprecationWarning:importlib.*