Newer
Older
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
[build-system]
requires = ["flit_core ~=3.2"]
build-backend = "flit_core.buildapi"
[project]
name = "project_templates"
authors = [
{name = "Dom Sekotill", email = "dom.sekotill@kodo.org.uk"},
]
license = {file = "LICENCE.txt"}
readme = "README.md"
dynamic = ["version", "description"]
requires-python = "~=3.9"
dependencies = [
"jinja2",
]
classifiers = [
"Development Status :: 1 - Planning",
"Intended Audience :: Developers",
"License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Software Development :: Quality Assurance",
]
[project.urls]
Repository = "https://code.kodo.org.uk/dom/project-templates"
[project.scripts]
new-project = "project_templates:main"
[tool.isort]
force_single_line = true
[tool.unimport]
ignore-init = true
[tool.flakeheaven]
base = ".flakerules.toml"
max_line_length = 92
max_doc_length = 92
[tool.mypy]
strict = true
warn_unused_configs = true
warn_unreachable = true
[tool.coverage.run]
data_file = "results/coverage.db"
branch = true
source = ["project_templates"]
dynamic_context = "test_function"
[tool.coverage.report]
precision = 2
skip_empty = true
exclude_lines = [
"pragma: no cover",
"if .*\\b__name__\\b",
"if .*\\bTYPE_CHECKING\\b",
"class .*(.*\\bProtocol\\b.*):",
"@overload",
]
partial_branches = [
"pragma: no branch",
"if .*\\b__debug__\\b",
]
[tool.coverage.json]
output = "results/coverage.json"
[tool.coverage.xml]
output = "results/coverage.xml"
[tool.coverage.html]
directory = "results/coverage.html.d"
show_contexts = true