-
Notifications
You must be signed in to change notification settings - Fork 7
/
pyproject.toml
229 lines (210 loc) · 5.67 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
224
225
226
227
228
229
[build-system]
requires = ["setuptools >= 68.0", "setuptools_scm>=8"]
build-backend = "setuptools.build_meta"
[project]
name = "mreg-cli"
description = "MREG interactive command line client"
readme = "README.md"
maintainers = [
# Active maintainers
{ name = "Terje Kvernes", email = "[email protected]" },
{ name = "Øyvind Hagberg", email = "[email protected]" },
{ name = "Peder Hovdan Andresen", email = "[email protected]" },
]
authors = [
# Historical authors
{ name = "Øyvind Kolbu", email = "[email protected]" },
{ name = "Safet A", email = "[email protected]" },
{ name = "Magnus Hirth", email = "[email protected]" },
{ name = "Nico", email = "[email protected]" },
{ name = "Marius Bakke", email = "[email protected]" },
{ name = "Fredrik Larsen", email = "[email protected]" },
{ name = "Paal Braathen", email = "[email protected]" },
{ name = "Nils Hiorth", email = "[email protected]" },
{ name = "Dmytro Karpenko", email = "[email protected]" },
{ name = "Others (see AUTHORS)" },
]
requires-python = ">=3.11"
license = { file = "LICENSE" }
keywords = ["mreg", "cli", "interactive"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
dependencies = [
'python-dateutil>=2.9.0',
'prompt_toolkit>=3.0.0',
'requests[socks]>=2.31.0',
'typing_extensions>=4.12.0',
"pydantic[email]>=2.7.1",
"pydantic-extra-types>=2.1.0",
"platformdirs>=4.3.0",
]
dynamic = ["version"]
[project.urls]
Repository = 'https://github.com/unioslo/mreg-cli/'
[project.scripts]
mreg-cli = "mreg_cli.main:main"
[dependency-groups]
dev = [
"pytest",
"inline-snapshot",
"pytest-httpserver",
"ruff",
"tox-uv",
"rich",
"setuptools",
"setuptools-scm",
"build",
"pyinstaller",
]
ci = [{ include-group = "dev" }, "tox-gh-actions"]
[tool.setuptools.packages.find]
include = ["mreg_cli*"]
[tool.black]
max-line-length = 99
[tool.isort]
profile = "black"
line_length = 99
[tool.ruff]
line-length = 99
# Assume Python 3.11.
target-version = "py311"
[tool.ruff.lint.isort]
required-imports = ["from __future__ import annotations"]
[tool.ruff.lint]
select = [
"A", # flake8-builtins
# "ANN", # annotations
"ARG", # flake8-unused-arguments
"B", # flake8-bugbear
"D", # pydocstyle
"DJ", # flake8-django
"E", # error
"F", # Pyflakes
"I", # isort
"ISC", # flake8-implicit-str-concat
"INP", # flake8-no-pep420 (implicit namespace packages, you need __init__.py)
# "PL", # pylint (all of the below)
"PLC", # pylint-convention
"PLE", # pylint-error
# "PLR", # pylint-refactor
# "PLW", # pylint-warning
"W", # warnings
]
ignore = [
# B905 (`zip()` without an explicit `strict=` parameter) is incompatible with older python versions.
"B905",
# D203 (1 blank line required before class docstring) is incompatible with
# D211 (No blank lines allowed before class docstring). We ignore D203.
"D203",
# D213 (Multi-line docstring summary should start at the second line) is incompatible with
# D212 (Multi-line docstring summary should start at the first line). We ignore D213.
"D213",
# ANN101 (Missing type annotation for `self` in method) is infered.
"ANN101",
# Rules disabled due to using ruff as a formatter. Most of these rules
# will thus be enforced by the formatter.
# https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules
"W191", # Indentation contains tabs
"E111", # Indentation is not a multiple of four
"E114", # Indentation is not a multiple of four (comment)
"E117", # Over-indented
"D206", # Docstring should be indented with spaces, not tabs
"D300", # Use """triple double quotes""" (found '''-quotes)
"Q000", # Remove bad quotes (inlined)
"Q001", # Remove bad quotes (multiline)
"Q002", # Remove bad quotes (docstring)
"Q003", # Avoidable escape quote
"COM812", # Missing trailing comma in Python 3.6+
"COM819", # Prohibited trailing comma
"ISC001", # Implicit string concatenation (single line)
"ISC002", # Implicit string concatenation (multiline)
]
# Allow autofix for all enabled rules (when `--fix`) is provided.
fixable = [
"A",
"B",
"C",
"D",
"E",
"F",
"G",
"I",
"N",
"Q",
"S",
"T",
"W",
"ANN",
"ARG",
"BLE",
"COM",
"DJ",
"DTZ",
"EM",
"ERA",
"EXE",
"FBT",
"ICN",
"INP",
"ISC",
"NPY",
"PD",
"PGH",
"PIE",
"PL",
"PT",
"PTH",
"PYI",
"RET",
"RSE",
"RUF",
"SIM",
"SLF",
"TCH",
"TID",
"TRY",
"UP",
"YTT",
]
unfixable = []
# Exclude a variety of commonly ignored directories.
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".mypy_cache",
".nox",
".pants.d",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
"migrations",
]
per-file-ignores = {}
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.lint.mccabe]
# Unlike Flake8, default to a complexity level of 10.
max-complexity = 10
[tool.setuptools_scm]
version_file = "mreg_cli/_version.py"