-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathpyproject.toml
More file actions
91 lines (77 loc) · 1.8 KB
/
Copy pathpyproject.toml
File metadata and controls
91 lines (77 loc) · 1.8 KB
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
82
83
84
85
86
87
88
89
90
91
[build-system]
requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"
[project]
name = "fillname"
authors = [{ name = "Author Fillname", email = "author@fillname.org" }]
description = "A template project."
requires-python = ">=3.10"
license = { file = "LICENSE" }
dynamic = ["version"]
readme = "README.md"
[project.urls]
Homepage = "https://fillname.org/"
[project.optional-dependencies]
lint = ["ruff"]
typecheck = ["pytest", "ty"]
test = ["pytest", "pytest-cov", "coverage[toml]"]
doc = [
"mkdocs",
"mkdocs-material",
"mkdocstrings>=1.0.4",
"mkdocstrings-python>=2.0",
"clindocs>=1.5.1",
"mkdocs-literate-nav",
"pygments_clingo",
]
dev = ["fillname[test,typecheck,lint]"]
[project.scripts]
fillname = "fillname.__main__:main"
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools_scm]
version_scheme = "python-simplified-semver"
local_scheme = "no-local-version"
[tool.isort]
profile = "black"
line_length = 120
[tool.black]
line-length = 120
[tool.ruff]
line-length = 120
target-version = "py310"
exclude = [
"/usr/**",
"**/site-packages/**",
"**/node_modules/**",
"**/typeshed-fallback/**",
]
[tool.ruff.lint]
extend-select = ["I", "E", "F", "B", "C4", "D", "ARG", "SIM", "ANN", "Q"]
ignore = [
"E741",
"D200",
"D203",
"D212",
"D413",
"B023", # broken lint
]
[tool.ruff.lint.per-file-ignores]
"noxfile.py" = ["ANN"]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = "test_*.py"
python_functions = "test_*"
[tool.coverage.run]
source = ["fillname", "tests"]
omit = ["*/fillname/__main__.py", "*/fillname/utils/logging.py"]
[tool.coverage.report]
show_missing = true
fail_under = 100
exclude_lines = [
"raise NotImplementedError",
"raise TypeError",
"nocoverage",
"assert",
"\\.\\.\\.",
]