-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
177 lines (161 loc) · 3.38 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
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
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
# SPDX-FileCopyrightText: © 2023 Nikita Karamov <[email protected]>
#
# SPDX-License-Identifier: BSD-3-Clause
[build-system]
build-backend = "hatchling.build"
requires = [
"hatchling",
]
[project]
name = "bumerge"
description = "Merge Butane configurations"
readme = "README.md"
license = {text = "BSD-3-Clause"}
maintainers = [
{ name = "Nikita Karamov", email = "[email protected]" },
]
authors = [
{ name = "Nikita Karamov", email = "[email protected]" },
]
requires-python = ">=3.9"
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: System :: Systems Administration",
"Typing :: Typed",
]
dynamic = [
"version",
]
dependencies = [
"ruamel.yaml>=0.15",
]
[project.urls]
"Bug tracker" = "https://github.com/kytta/bumerge/issues"
Changelog = "https://github.com/kytta/bumerge/blob/main/CHANGELOG.md"
Funding = "https://github.com/sponsors/kytta"
"Source Code" = "https://github.com/kytta/bumerge/"
[project.scripts]
bumerge = "bumerge:_main"
[tool.hatch.version]
path = "bumerge.py"
[tool.hatch.envs.default]
dependencies = [
"pytest",
"pytest-datadir",
"coverage[toml]",
"covdefaults",
]
[tool.hatch.envs.default.scripts]
test = [
"pytest {args:tests}",
]
cov = [
"coverage erase",
"coverage run -m pytest {args:tests}",
"coverage report",
"coverage xml"
]
[[tool.hatch.envs.test.matrix]]
python = ["39", "310", "311"]
[tool.autopep8]
ignore = ["W503"]
[tool.ruff]
line-length = 79
format = "grouped"
show-source = true
select = [
"F",
"E",
"W",
"C90",
"I",
"N",
"D",
"UP",
"YTT",
"ANN",
"S",
"BLE",
"FBT",
"B",
"A",
"COM",
"C4",
"DTZ",
"T10",
"EM",
"EXE",
"ISC",
"ICN",
"INP",
"PIE",
"T20",
"PT",
"Q",
"RSE",
"RET",
"SLF",
"SIM",
"TID",
"TCH",
"ARG",
"PTH",
"ERA",
"PGH",
"PL",
"TRY",
"RUF",
]
extend-ignore = [
"ANN101", # mypy knows what 'self' is
"D105", # docstrings for magic methods
]
unfixable = ["ERA001"]
[tool.ruff.per-file-ignores]
"src/*" = [
"PT",
]
"tests/*" = [
"ANN", # type annotations
"D", # docstrings
"FBT001", # Boolean positional arg in function definition
"PLR0913", # too many function arguments
"PLR2004", # magic values
"S101", # use of assert detected
"SLF001", # private method accessed
]
[tool.ruff.flake8-annotations]
allow-star-arg-any = true
[tool.ruff.flake8-tidy-imports]
ban-relative-imports = "all"
[tool.ruff.isort]
force-single-line = true
required-imports = ["from __future__ import annotations"]
[tool.ruff.pycodestyle]
max-doc-length = 72
[tool.ruff.pydocstyle]
convention = "pep257"
[tool.coverage.run]
plugins = ["covdefaults"]
[tool.mypy]
python_version = 3.9
check_untyped_defs = true
disallow_any_generics = true
disallow_incomplete_defs = true
disallow_untyped_defs = true
warn_redundant_casts = true
warn_unused_ignores = true
[[tool.mypy.overrides]]
module = ["tests.*"]
ignore_missing_imports = true
check_untyped_defs = false
disallow_incomplete_defs = false
disallow_untyped_defs = false