forked from RedHatProductSecurity/component-registry
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
49 lines (44 loc) · 1.31 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
[tool.pytest.ini_options]
django_debug_mode = true
testpaths = "tests"
# Options used for every pytest command:
# - Run tests marked with the "unit" marker (run "integration" tests with `-m integration`)
# - Generate coverage report for the "corgi/" directory in the terminal
# - Show extra test summary info ("a" == (a)ll)
# - Record VCR cassettes if they are not available
# - Report on the ten slowest tests
# - Skip applying migrations to save on DB-setup time
# - Ensure pytest config here is valid, and all defined markers are specified below in `markers`
addopts = """
-m unit
--cov corgi --cov-report html --cov-report xml:coverage.xml
-ra
--record-mode=once
--durations=10
--nomigrations
--strict-config --strict-markers
"""
markers = [
"unit",
"integration",
]
filterwarnings = [
"ignore::UserWarning",
"ignore::DeprecationWarning",
"ignore::PendingDeprecationWarning",
]
[tool.black]
line-length = 100
[tool.coverage.run]
omit = ["corgi/core/migrations/*"]
[tool.isort]
profile = "black"
[tool.mypy]
python_version = "3.9"
ignore_missing_imports = true
warn_return_any = false
warn_unused_configs = true
plugins = ["mypy_django_plugin.main", "mypy_drf_plugin.main"]
exclude = ["corgi/core/migrations", "corgi/collectors/migrations"]
[tool.django-stubs]
django_settings_module = "config.settings.test"