-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpyproject.toml
More file actions
160 lines (139 loc) · 3.43 KB
/
Copy pathpyproject.toml
File metadata and controls
160 lines (139 loc) · 3.43 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
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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "inifix"
version = "7.0.1"
description = "An I/O library for Pluto-style ini files."
authors = [
{ name = "C.M.T. Robert" },
]
license = "GPL-3.0-only"
license-files = ["LICENSE"]
classifiers = [
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Development Status :: 5 - Production/Stable",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: 3.15",
"Programming Language :: Python :: Free Threading :: 3 - Stable",
"Topic :: Scientific/Engineering",
"Typing :: Typed",
]
requires-python = ">=3.11"
dependencies = []
[project.readme]
file = "README.md"
content-type = "text/markdown"
[project.urls]
Homepage = "https://github.com/neutrinoceros/inifix"
Changelog = "https://github.com/neutrinoceros/inifix/blob/main/CHANGELOG.md"
[tool.hatch]
version.source = "vcs"
[tool.hatch.build.targets.sdist]
only-include = [
"src",
"tests",
"LICENSE",
"CHANGELOG.md",
"README.md",
]
[tool.hatch.build.hooks.vcs]
version-file = "src/inifix/_version.py"
template = '''
# This file is automatically generated by Hatch
from typing import Final
__all__ = ["__version__", "__version_tuple__"]
__version__: Final = {version!r}
__version_tuple__: tuple[int, int, int] = {version_tuple!r}
'''
[dependency-groups]
test = [
"hypothesis>=6.110.0",
"pytest>=9.0.0",
"runtime-introspect>=0.3.0",
"typing-extensions>=4.13.0 ; python_full_version < '3.14'",
]
concurrency = [
{include-group = "test"},
"pytest-repeat>=0.9.3",
]
covcheck = [
{include-group = "test"},
"coverage>=7.10.0",
]
typecheck = [
{include-group = "test"},
"mypy>=1.11.2",
"pyright>=1.1.390",
]
[tool.uv.workspace]
members = ["cli/inifix-cli"]
[tool.uv.sources]
inifix = { workspace = true }
inifix-cli = { workspace = true }
[tool.pyright]
reportImplicitStringConcatenation = false
# allow defensive code
reportUnreachable = false
reportUnnecessaryIsInstance = false
reportUnnecessaryComparison = false
[tool.mypy]
python_version = "3.11"
strict = true
show_error_codes = true
show_error_context = true
[[tool.mypy.overrides]]
module = "tests.*"
ignore_errors = true
[tool.pytest]
minversion = "9.0"
strict = true
addopts = ["-ra"]
filterwarnings = [
"error",
]
[tool.coverage.run]
branch = true
source = [
"src/inifix",
"tests",
"cli/inifix-cli/src",
"cli/inifix-cli/tests",
]
omit = [
"cli/inifix-cli/src/inifix_cli/__main__.py",
"scripts/*",
]
[tool.coverage.report]
show_missing = true
skip_covered = false
# use exclude_also to *extend* the default exclude_lines,
# and allow purely defensive code patterns
exclude_also = [
"^\\s*raise (Assertion|NotImplemented|Runtime)Error\\b",
"^\\s*case _ as unreachable:",
]
[tool.ruff.lint]
exclude = ["*__init__.py"]
ignore = ["E501"]
extend-select = [
"E",
"F",
"W",
"C4", # flake8-comprehensions
"B", # flake8-bugbear
"YTT", # flake8-2020
"I", # isort
"UP", # pyupgrade
"RUF022" # unsorted-dunder-all
]
[tool.ruff.lint.isort]
known-first-party = ["inifix"]