-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
124 lines (95 loc) · 2.96 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "hatch-buildext"
dynamic = ["version"]
description = ''
readme = "README.md"
requires-python = ">=3.8"
license = "Apache-2.0"
keywords = ["build", "hatch", "packaging", "extension modules"]
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Software Development :: Build Tools",
"Topic :: Software Development :: Code Generators",
"Topic :: Software Development :: Compilers",
]
dependencies = ["hatchling", "setuptools"]
[project.urls]
Documentation = "https://github.com/xoudini/hatch-buildext#readme"
Issues = "https://github.com/xoudini/hatch-buildext/issues"
Source = "https://github.com/xoudini/hatch-buildext"
[project.entry-points.hatch]
buildext = "hatch_buildext.hooks"
[tool.hatch.version]
path = "src/hatch_buildext/__about__.py"
[tool.hatch.envs.default]
extra-dependencies = ["ipython"]
[tool.hatch.envs.types]
extra-dependencies = ["mypy>=1.0.0", "pytest"]
[tool.hatch.envs.types.scripts]
check = "mypy --install-types --non-interactive {args:src/hatch_buildext tests}"
[tool.mypy]
python_version = "3.8"
strict = true
warn_unused_configs = true
warn_unused_ignores = true
check_untyped_defs = true
warn_redundant_casts = true
warn_return_any = true
warn_no_return = true
warn_unreachable = true
warn_incomplete_stub = true
no_implicit_optional = true
no_implicit_reexport = true
disallow_any_explicit = true
disallow_any_generics = true
disallow_any_unimported = true
disallow_subclassing_any = true
disallow_untyped_defs = true
[tool.coverage.run]
source_pkgs = ["hatch_buildext", "tests"]
branch = true
parallel = true
omit = ["src/hatch_buildext/__about__.py"]
[tool.coverage.paths]
hatch_buildext = ["src/hatch_buildext", "*/hatch-buildext/src/hatch_buildext"]
tests = ["tests", "*/hatch-buildext/tests"]
[tool.coverage.report]
exclude_lines = ["no cov", "if __name__ == .__main__.:", "if t.TYPE_CHECKING:"]
[tool.ruff]
target-version = "py38"
line-length = 88
include = ["pyproject.toml", "src/**/*.py", "tests/**/*.py"]
[tool.ruff.lint]
select = ["C90", "E", "F", "I", "W", "SIM", "PYI", "ARG"]
[tool.ruff.lint.mccabe]
max-complexity = 10
[tool.ruff.lint.isort]
combine-as-imports = true
force-wrap-aliases = true
lines-after-imports = 2
lines-between-types = 0
order-by-type = true
no-lines-before = [
"standard-library",
"first-party",
"third-party",
"local-folder",
]
[tool.ruff.format]
quote-style = "double"
[tool.hatch.build.targets.sdist]
exclude = [".github", "tests"]
[tool.hatch.build.targets.wheel]
packages = ["src/hatch_buildext"]