-
Notifications
You must be signed in to change notification settings - Fork 4
/
pyproject.toml
116 lines (100 loc) · 2.11 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "inifix"
version = "5.0.4"
description = "An I/O library for Pluto-style ini files."
authors = [
{ name = "C.M.T. Robert" },
]
classifiers = [
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Programming Language :: Python :: 3",
"Typing :: Typed",
]
requires-python = ">=3.10"
[project.license]
text = "GPL-3.0"
[project.readme]
file = "README.md"
content-type = "text/markdown"
[project.scripts]
inifix-format = "inifix.format:main"
inifix-validate = "inifix.validate:main"
[project.urls]
Homepage = "https://github.com/neutrinoceros/inifix"
Changelog = "https://github.com/neutrinoceros/inifix/blob/main/CHANGELOG.md"
[dependency-groups]
concurrency = [
"pytest-repeat>=0.9.3",
]
covcheck = [
"coverage[toml]>=6.5.0",
]
test = [
"hypothesis>=6.110.0",
"pytest>=6.1",
]
typecheck = [
"mypy>=1.11.2",
]
[tool.hatch.build]
exclude = [
"scripts",
"_typos.toml",
]
[tool.ruff.lint]
exclude = ["*__init__.py"]
ignore = ["E501"]
select = [
"E",
"F",
"W",
"C4", # flake8-comprehensions
"B", # flake8-bugbear
"YTT", # flake8-2020
"I", # isort
"UP", # pyupgrade
]
[tool.ruff.lint.isort]
known-first-party = ["inifix"]
[tool.coverage.run]
branch = true
source = [
"src/inifix",
"tests",
]
omit = [
"scripts/*",
]
[tool.coverage.report]
show_missing = true
skip_covered = false
exclude_lines = [
# a more strict default pragma
"\\# pragma: no cover\\b",
# allow defensive code
"^\\s*raise NotImplementedError\\b",
": \\.\\.\\.(\\s*#.*)?$",
"^ +\\.\\.\\.$",
"-> ['\"]?NoReturn['\"]?:",
]
[tool.mypy]
python_version = "3.10"
show_error_codes = true
warn_unused_configs = true
warn_unused_ignores = true
warn_unreachable = true
show_error_context = true
disallow_untyped_defs = true
[[tool.mypy.overrides]]
module = "tests.*"
ignore_errors = true
[tool.pytest.ini_options]
minversion = "6.0"
filterwarnings = [
"error",
"ignore:assertions not in test modules or plugins will be ignored:UserWarning",
]
addopts = "-ra"