-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
86 lines (73 loc) · 1.85 KB
/
Copy pathpyproject.toml
File metadata and controls
86 lines (73 loc) · 1.85 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
[project]
name = "orgmgr"
version = "0.1.0"
description = "Organization manager"
requires-python = ">=3.12,<4"
dependencies = [
"alembic>=1.15.1",
"asyncpg>=0.30.0",
"cbor2>=5.6.5",
"click>=8.1.8",
"dishka>=1.7.1",
"fastapi>=0.115.11",
"pydantic>=2.10.5",
"pydantic-settings>=2.7.1",
"pyfa-converter-v2>=2.0.0rc1",
"pyjwt>=2.10.1",
"pyyaml>=6.0.2",
"redis[hiredis]>=5.2.1",
"sentry-sdk>=2.20.0",
"sqlalchemy>=2.0.39",
"uvicorn>=0.34.0",
]
[project.scripts]
orgmgr = "orgmgr.__main__:main"
[dependency-groups]
dev = [
"mypy>=1.14.1",
"pre-commit>=4.1.0",
"ruff>=0.9.2",
"types-click>=7.1.8",
"types-pyyaml>=6.0.12.20241230",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.ruff]
line-length = 120
indent-width = 4
target-version = "py312"
exclude = [".venv", ".direnv", "__pycache__", ".git", "build", "dist"]
[tool.ruff.lint]
select = ["E", "F"]
extend-select = [
"A", # flake8-builtins
"C4", # flake8-comprehensions
"D", # pydocstyle
"ERA", # eradicate (commented code)
"PT", # flake8-pytest-style
"SIM", # flake8-simplify
"T20", # flake8-print
"UP", # pyupgrade
]
ignore = ["S608"]
# Allow fix for all enabled rules (when `--fix`) is provided.
fixable = ["C4", "E", "F", "UP", "SIM", "I"]
unfixable = ["A", "D", "ERA", "PT", "S", "T20"]
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.lint.per-file-ignores]
"migrations/*" = ["D103", "ERA001"]
[tool.ruff.lint.isort]
combine-as-imports = true
lines-after-imports = 2
[tool.ruff.lint.pydocstyle]
convention = "google"
ignore-decorators = ["typing.overload"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
docstring-code-format = true
docstring-code-line-length = "dynamic"