-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpyproject.toml
125 lines (109 loc) · 2.48 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
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
[build-system]
requires = ["flit_core >=3,<4"]
build-backend = "flit_core.buildapi"
[project]
name = "thx"
readme = "README.rst"
license = {file="LICENSE"}
dynamic = ["version", "description"]
authors = [
{name="Amethyst Reese", email="amethyst@n7.gg"},
]
classifiers = [
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Topic :: Utilities",
"Typing :: Typed",
]
requires-python = ">=3.8"
dependencies = [
"aioitertools >= 0.10.0b1",
"click >= 8.0",
"packaging >= 21.0",
"rich >= 11.0.0",
"tomli >= 1.0",
"trailrunner >= 1.1",
"typing_extensions >= 4.0",
"watchdog >= 2.1",
]
[project.optional-dependencies]
dev = [
"aioitertools==v0.11.0",
"click==8.1.7",
"packaging==24.0",
"rich==13.7.1",
"tomli==2.0.1",
"trailrunner==1.4.0",
"typing_extensions == 4.12.0",
"watchdog==4.0.1",
"attribution==1.7.1",
"black==24.4.2",
"coverage==7.5.3",
"flit==3.9.0",
"flake8==7.0.0",
"mypy==1.10.0",
"ufmt==2.6.0",
"usort==1.0.8.post1",
]
docs = [
"sphinx==7.3.7; python_version > '3.8'",
"sphinx-mdinclude==0.6.1",
]
[project.scripts]
thx = "thx.main:main"
[project.urls]
Documentation = "https://thx.omnilib.dev"
Github = "https://github.com/omnilib/thx"
[tool.flit.sdist]
exclude = [
".github/",
]
[tool.attribution]
name = "thx"
package = "thx"
ignored_authors = ["dependabot"]
version_file = true
signed_tags = false
[tool.coverage.run]
branch = true
parallel = true
include = ["thx/*"]
omit = ["thx/tests/*"]
[tool.coverage.report]
fail_under = 90
precision = 1
show_missing = true
skip_covered = true
[tool.mypy]
python_version = "3.8"
strict = true
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "thx.core"
disallow_untyped_calls = false
[tool.thx]
default = ["format", "docs", "test", "lint", "coverage"]
python_versions = ["3.8", "3.9", "3.10", "3.11", "3.12"]
extras = ["dev", "docs"]
[tool.thx.values]
module = "thx"
srcs = "thx"
[tool.thx.jobs]
docs = {run="sphinx-build -ab html docs html", once=true}
format = {run="python -m ufmt format {srcs}", once=true}
test = "python -m coverage run -m {module}.tests"
[tool.thx.jobs.coverage]
requires = ["test"]
run = [
"python -m coverage combine -q",
"python -m coverage report",
]
once = true
show_output = true
[tool.thx.jobs.lint]
run = [
"python -m mypy --install-types --non-interactive -p {module}",
"python -m flake8 {srcs}",
"python -m ufmt check {srcs}",
]
parallel = true