-
Notifications
You must be signed in to change notification settings - Fork 109
/
pyproject.toml
31 lines (27 loc) · 1.24 KB
/
pyproject.toml
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
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "usaspending_api.settings"
addopts = "--cov=usaspending_api"
markers = [
"signal_handling: Mark all tests that import the signal library and invoke signals. This MUST be done on the main thread, and can cause errors if pytest-xdist subordinates parellel test sessions to background threads.",
# These are "auto" marked based on fixture usage. See conftest.py pytest_collection_modifyitems
"spark: Mark all tests using the spark fixture. Can be selected with -m spark or deselected with -m (not spark)",
"database: Mark all integration tests using a database. Can be selected with -m database or deselected with -m (not database)",
"elasticsearch: Mark all integration tests using Elasticsearch. Can be selected with -m database or deselected with -m (not elasticsearch)",
]
[tool.coverage.run]
omit = [
# tests themselves don't need coverage measurements
"*/tests/*",
# nor db migration scripts
"*/migrations/*",
]
[tool.coverage.report]
# Regexes for lines to exclude from consideration
exclude_lines = [
# Have to re-enable the standard pragma
"pragma: no cover"
]
[tool.black]
line-length = 120
target_version = ['py38']
exclude = '/(\.git|\.venv|venv|migrations)/'