-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
244 lines (234 loc) · 7.33 KB
/
Copy pathpyproject.toml
File metadata and controls
244 lines (234 loc) · 7.33 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
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
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
[project]
name = "saritasa-invocations"
dynamic = [
"version",
]
description = "Collection of invoke commands used by Saritasa"
authors = [
{name = "Saritasa", email = "pypi@saritasa.com"}
]
maintainers = [
{name = "Stanislav Khlud", email = "stanislav.khlud@saritasa.com"}
]
keywords = [
"python",
"invoke"
]
license = "MIT"
readme = "README.md"
classifiers = [
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries :: Python Modules",
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]
requires-python = ">=3.10"
dependencies = [
# Invoke is a Python (2.7 and 3.4+) task execution tool & library,
# drawing inspiration from various sources to arrive at a powerful & clean feature set.
# http://www.pyinvoke.org/
"invoke>=2",
# Rich is a Python library for writing rich text (with color and style) to the terminal,
# and for displaying advanced content such as tables, markdown, and syntax highlighted code.
# https://rich.readthedocs.io/en/stable/introduction.html
"rich>=13",
]
[project.optional-dependencies]
env-settings = [
# Decouple helps you to organize your settings so that you can change
# parameters without having to redeploy your app.
# Used to get settings from .env files
# https://github.com/HBNetwork/python-decouple
"python-decouple>=3",
]
[dependency-groups]
local = [
"ipython",
# Exports functions to access the IPython debugger, which features tab completion, syntax highlighting, better tracebacks
# https://github.com/gotcha/ipdb
"ipdb",
# A fast Git hook manager written in Rust, designed as a drop-in alternative to pre-commit, reimagined.
# https://prek.j178.dev/
"prek",
# Collection of invoke commands which used in Saritasa organization
# https://github.com/saritasa-nest/saritasa-python-invocations/
"saritasa-invocations[env_settings]",
# A library and CLI app for rendering project templates.
# https://copier.readthedocs.io/en/latest/
"copier",
]
linters = [
# Mypy is a static type checker for Python.
# https://mypy.readthedocs.io/en/stable/
"mypy",
]
docs = [
# Project documentation with Markdown.
# https://www.mkdocs.org/
"mkdocs",
# A powerful documentation framework on top of MkDocs
# https://squidfunk.github.io/mkdocs-material/
"mkdocs-material",
# Automatic documentation from sources, for MkDocs
# https://mkdocstrings.github.io/
"mkdocstrings[python]",
# Manage multiple versions of your MkDocs-powered documentation
# https://github.com/jimporter/mike
"mike",
]
[project.scripts]
# For testing locally
# uvx --with=mypy . pre-commit.run-hooks
saritasa-invocations = "invoke.main:program.run"
saritasa-inv = "invoke.main:program.run"
[project.urls]
Documentation = "https://saritasa-nest.github.io/saritasa-invocations/latest/"
Repository = "https://github.com/saritasa-nest/saritasa-invocations"
Changelog = "https://saritasa-nest.github.io/saritasa-invocations/latest/changelog/"
Releases = "https://github.com/saritasa-nest/saritasa-invocations/releases/"
"Bug Tracker" = "https://github.com/saritasa-nest/saritasa-invocations/issues/"
Contributing ="https://saritasa-nest.github.io/saritasa-invocations/latest/contributing/"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.version]
# https://regex101.com/r/b6WRcJ/1
pattern = "(?<=^## )(?P<version>(\\d{1,2}\\.\\d{1,2}\\.\\d{1,3})).*$"
path = "CHANGELOG.md"
[tool.hatch.build.targets.wheel]
packages = [
"saritasa_invocations"
]
[tool.ruff]
line-length = 79
indent-width = 4
[tool.ruff.lint]
extend-select = [
# https://docs.astral.sh/ruff/rules/#pycodestyle-e-w
"W",
"E",
# https://docs.astral.sh/ruff/rules/#mccabe-c90
"C90",
# https://docs.astral.sh/ruff/rules/#isort-i
"I",
# https://docs.astral.sh/ruff/rules/#pep8-naming-n
"N",
# https://docs.astral.sh/ruff/rules/#pydocstyle-d
"D",
# https://docs.astral.sh/ruff/rules/#pyupgrade-up
"UP",
# https://docs.astral.sh/ruff/rules/#flake8-annotations-ann
"ANN",
# https://docs.astral.sh/ruff/rules/#flake8-bandit-s
"S",
# https://docs.astral.sh/ruff/rules/#flake8-bugbear-b
"B",
# https://docs.astral.sh/ruff/rules/#flake8-builtins-a
"A",
# https://docs.astral.sh/ruff/rules/#flake8-commas-com
"COM",
# https://docs.astral.sh/ruff/rules/#flake8-comprehensions-c4
"C4",
# https://docs.astral.sh/ruff/rules/#flake8-datetimez-dtz
"DTZ",
# https://docs.astral.sh/ruff/rules/#flake8-debugger-t10
"T10",
# https://docs.astral.sh/ruff/rules/#flake8-print-t20
"T20",
# https://docs.astral.sh/ruff/rules/#flake8-pytest-style-pt
"PT",
# https://docs.astral.sh/ruff/rules/#flake8-simplify-sim
"SIM",
# https://docs.astral.sh/ruff/rules/#flake8-use-pathlib-pth
"PTH",
# https://docs.astral.sh/ruff/rules/#flake8-todos-td
"TD",
# https://docs.astral.sh/ruff/rules/#eradicate-era
"ERA",
# https://docs.astral.sh/ruff/rules/#tryceratops-try
"TRY",
# https://docs.astral.sh/ruff/rules/#flynt-fly
"FLY",
# https://docs.astral.sh/ruff/rules/#perflint-perf
"PERF",
# https://docs.astral.sh/ruff/rules/#refurb-furb
"FURB",
# https://docs.astral.sh/ruff/rules/#flake8-pie-pie
"PIE",
# https://docs.astral.sh/ruff/rules/#flake8-async-async
"ASYNC",
# https://docs.astral.sh/ruff/rules/#ruff-specific-rules-ruf
"RUF",
]
ignore = [
# https://docs.astral.sh/ruff/rules/any-type
"ANN401",
# https://docs.astral.sh/ruff/rules/missing-type-kwargs
"ANN003",
# https://docs.astral.sh/ruff/rules/undocumented-public-module
"D100",
# https://docs.astral.sh/ruff/rules/undocumented-public-package
"D104",
# https://docs.astral.sh/ruff/rules/undocumented-public-nested-class
"D106",
# https://docs.astral.sh/ruff/rules/undocumented-public-init
"D107",
# https://docs.astral.sh/ruff/rules/raise-vanilla-args
"TRY003",
# https://docs.astral.sh/ruff/rules/try-consider-else
"TRY300",
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = [
# https://docs.astral.sh/ruff/rules/unused-import
"F401",
]
"**/tests/*" = [
# https://docs.astral.sh/ruff/rules/assert
"S101",
# https://docs.astral.sh/ruff/rules/hardcoded-password-func-arg
"S106",
# https://docs.astral.sh/ruff/rules/suspicious-non-cryptographic-random-usage
"S311",
]
"**/test_*" = [
# https://docs.astral.sh/ruff/rules/missing-return-type-undocumented-public-function
"ANN201",
]
[tool.ruff.lint.isort]
force-wrap-aliases = true
split-on-trailing-comma = true
section-order = [
"future",
"standard-library",
"third-party",
"first-party",
"local-folder",
]
[tool.ruff.lint.flake8-pytest-style]
fixture-parentheses = false
parametrize-names-type = "list"
parametrize-values-type = "list"
parametrize-values-row-type = "list"
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.mypy]
# https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
ignore_missing_imports = true
strict = false
warn_no_return = false
check_untyped_defs = true
disallow_any_generics = true
exclude = "venv|/.venv"