-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
80 lines (69 loc) · 1.89 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
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "import-rewriter"
description = """A flexible library for dynamically rewriting Python imports at runtime using metapath hooks."""
readme = "README.md"
license = { file = "LICENSE" }
dynamic = ["version"]
authors = [
{ name = "Daniel Copley", email = "[email protected]" },
]
requires-python = ">=3.9"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Operating System :: MacOS",
"Operating System :: POSIX :: Linux",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"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",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
]
dependencies = [
"astroid~=3.0",
]
[dependency-groups]
dev = [
"pytest",
"mypy",
"ruff",
]
[project.urls]
Homepage = "https://github.com/djcopley/import-rewriter"
Repository = "https://github.com/djcopley/import-rewriter.git"
Issues = "https://github.com/djcopley/import-rewriter/issues"
[tool.hatch.version]
source = "vcs"
[tool.hatch.envs.types]
dependencies = [
"mypy",
]
[tool.hatch.envs.types.scripts]
check = "mypy {args:src/import_rewriter}"
[[tool.hatch.envs.hatch-test.matrix]]
python = ["3.9", "3.10", "3.11", "3.12", "3.13"]
[tool.pytest.ini_options]
norecursedirs = "tests/resources"
addopts = [
"--import-mode=importlib",
]
[tool.coverage.run]
source = ["src/"]
branch = true
parallel = true
[tool.coverage.report]
exclude_lines = [
"no cov",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]
[tool.ruff.lint.extend-per-file-ignores]
"tests/*" = ["INP001", "ARG"]
[tool.ruff]
exclude = ["tests/resources"]