-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpyproject.toml
133 lines (114 loc) · 3.33 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
126
127
128
129
130
131
132
133
[project]
name = "dataclassish"
authors = [
{ name = "Nathaniel Starkman", email = "[email protected]" },
]
description = "dataclass tools, extended by multiple dispatch"
readme = "README.md"
license.file = "LICENSE"
requires-python = ">=3.10"
classifiers = [
"Development Status :: 1 - Planning",
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering",
"Typing :: Typed",
]
dynamic = ["version"]
dependencies = [
"plum-dispatch>=2.5.1",
"typing_extensions>=4.12.2",
]
[project.urls]
Homepage = "https://github.com/GalacticDynamics/dataclassish"
"Bug Tracker" = "https://github.com/GalacticDynamics/dataclassish/issues"
Discussions = "https://github.com/GalacticDynamics/dataclassish/discussions"
Changelog = "https://github.com/GalacticDynamics/dataclassish/releases"
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[dependency-groups]
dev = [
"cz-conventional-gitmoji>=0.6.1",
{ "include-group" = "nox" },
{ "include-group" = "test" },
]
nox = ["nox>=2024.10.9"]
test = [
"attrs",
"pytest >=6",
"pytest-cov >=3",
"sybil",
]
[tool.hatch]
version.source = "vcs"
build.hooks.vcs.version-file = "src/dataclassish/_version.py"
[tool.commitizen]
name = "cz_gitmoji"
[tool.pytest.ini_options]
minversion = "6.0"
addopts = ["-ra", "--showlocals", "--strict-markers", "--strict-config"]
xfail_strict = true
filterwarnings = [
"error",
]
log_cli_level = "INFO"
testpaths = [
"README.md", "src", "tests",
]
[tool.coverage]
run.source = ["dataclassish"]
report.exclude_also = [
'\.\.\.',
'if typing.TYPE_CHECKING:',
]
[tool.mypy]
files = ["src"]
python_version = "3.10"
warn_unused_configs = true
strict = true
enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"]
warn_unreachable = true
disallow_untyped_defs = false
disallow_incomplete_defs = false
[[tool.mypy.overrides]]
module = "dataclassish.*"
disallow_untyped_defs = true
disallow_incomplete_defs = true
[[tool.mypy.overrides]]
ignore_missing_imports = true
module = ["plum.*"]
[tool.ruff]
src = ["src"]
[tool.ruff.lint]
extend-select = ["ALL"]
ignore = [
"ANN401", # Dynamically typed expressions are disallowed in `**kwargs`
"COM812", # For ruff.format
"D203", # 1 blank line required before class docstring
"D213", # Multi-line docstring summary should start at the first line
"F811", # Redefinition of unused '...' (for plum-dispatch)
"FIX002", # Line contains TODO
"ISC001", # Conflicts with formatter
"PLR09", # Too many <...>
"PLR2004", # Magic value used in comparison
"RUF022", # `__all__` is not sorted
"TD002", # Missing author in TODO
"TD003", # Missing issue link on the line following this TODO
]
[tool.ruff.lint.per-file-ignores]
"tests/**" = ["ANN", "S101", "T20"]
"noxfile.py" = ["T20"]
"docs/conf.py" = ["INP001"]
[tool.ruff.lint.isort]
combine-as-imports = true
extra-standard-library = ["typing_extensions"]