-
Notifications
You must be signed in to change notification settings - Fork 4
/
pyproject.toml
223 lines (206 loc) · 3.69 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
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
[build-system]
build-backend = "setuptools.build_meta"
requires = [
"setuptools>=61.2",
]
[project]
authors = [
{ email = "[email protected]", name = "Christian Ledermann" },
]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Software Development :: Code Generators",
"Typing :: Typed",
]
dependencies = [
"typer",
]
description = "Create a __repr__ for your python classes from the definition found in __init__"
dynamic = [
"version",
]
keywords = [
"__repr__",
"cli",
"code generator",
"introspection",
]
name = "crepr"
requires-python = ">=3.12"
[project.license]
text = "MIT"
[project.optional-dependencies]
complexity = [
"lizard",
"radon",
]
dev = [
"crepr[complexity]",
"crepr[linting]",
"crepr[tests]",
"crepr[typing]",
"pre-commit",
]
linting = [
"black",
"flake8",
"flake8-cognitive-complexity",
"flake8-comments",
"flake8-complex-f-strings",
"flake8-continuation",
"flake8-docstrings",
"flake8-encodings",
"flake8-expression-complexity",
"flake8-function-order",
"flake8-pep3101",
"flake8-super",
"flake8-use-fstring",
"ruff",
"yamllint",
]
tests = [
"pytest",
"pytest-cov",
]
typing = [
"mypy",
]
[project.readme]
content-type = "text/markdown"
file = "README.md"
[project.scripts]
crepr = "crepr.crepr:app"
[project.urls]
Homepage = "https://github.com/cleder/crepr/"
[tool.coverage.paths]
source = [
"crepr",
"tests",
]
[tool.coverage.report]
exclude_also = [
"if __name__ == .__main__.:",
]
[tool.coverage.run]
branch = true
omit = [
"tests/classes/*",
"tests/remove/*",
]
[tool.flake8]
max_line_length = 88
[tool.isort]
force_single_line = true
line_length = 88
[tool.mypy]
disallow_any_generics = true
disallow_incomplete_defs = true
disallow_untyped_calls = true
disallow_untyped_decorators = true
disallow_untyped_defs = true
enable_error_code = [
"ignore-without-code",
]
ignore_errors = false
ignore_missing_imports = false
implicit_reexport = false
no_implicit_optional = true
overrides = [
{ disallow_untyped_defs = false, ignore_errors = true, module = "tests.*" },
]
show_error_codes = true
strict_equality = true
strict_optional = true
warn_no_return = true
warn_redundant_casts = true
warn_return_any = true
warn_unreachable = true
warn_unused_configs = true
warn_unused_ignores = true
[tool.ruff]
fix = true
target-version = "py312"
[tool.ruff.lint]
ignore = [
"D203",
"D213",
]
select = [
"A",
"AIR",
"ANN",
"ARG",
"ASYNC",
"B",
"BLE",
"C4",
"C90",
"COM",
"CPY",
"D",
"DJ",
"DTZ",
"E",
"EM",
"ERA",
"EXE",
"F",
"FA",
"FBT",
"FIX",
"FLY",
"FURB",
"G",
"I",
"ICN",
"INP",
"INT",
"ISC",
"LOG",
"N",
"NPY",
"PD",
"PERF",
"PGH",
"PIE",
"PL",
"PT",
"PTH",
"PYI",
"Q",
"RET",
"RSE",
"RUF",
"S",
"SIM",
"SLF",
"SLOT",
"T10",
"T20",
"TCH",
"TD",
"TID",
"TRY",
"UP",
"W",
"YTT",
]
[tool.ruff.lint.isort]
force-single-line = true
[tool.ruff.lint.per-file-ignores]
"tests/*.py" = [
"PLR2004",
"S101",
"SLF001",
]
[tool.setuptools.dynamic.version]
attr = "crepr.about.__version__"