-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
57 lines (50 loc) · 1.36 KB
/
pyproject.toml
File metadata and controls
57 lines (50 loc) · 1.36 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
[project]
name = "ksc-tools"
version = "1.2.4"
license = "MIT"
description = "Tools, hints and tips for working with the KeySafe-Cloud (KSC) API and compatible locks."
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"python-dotenv>=1.2.2",
"requests>=2.33.1",
"xlsxwriter>=3.2.9",
]
[dependency-groups]
dev = [
"ruff>=0.15.9",
"ty>=0.0.29",
]
[tool.ruff]
src = ["scripts"]
include = ["pyroject.toml", "scripts/**/*.py"]
line-length = 100
target-version = "py312"
extend-exclude = ["bin"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
docstring-code-format = false
docstring-code-line-length = "dynamic"
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"COM812", # flake8-commas "Trailing comma missing"
"D200", # allow one-line docstring using multi-line
"D203", # "one-blank-line-before-class" conflicting with D211
"D212", # "multi-line-summary" conflicting with D213
"G004", # allow logging f-string (has performance trade-off)
"INP", # ignore flake8-no-pep420
"TD002", # allow missing-todo-author
"TD003", # allow missing-todo-link
]
[tool.ruff.lint.isort]
lines-after-imports = 2
[tool.ruff.lint.extend-per-file-ignores]
"tests/*.py" = [
"S101", # allow asserts
]
[tool.ty.environment]
root = ["scripts"]