-
-
Notifications
You must be signed in to change notification settings - Fork 130
Expand file tree
/
Copy pathpyproject.toml
More file actions
65 lines (55 loc) · 1.8 KB
/
pyproject.toml
File metadata and controls
65 lines (55 loc) · 1.8 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
# Root pyproject.toml - Workspace configuration + dev tools
# The actual packages are in libs/aegra-api and libs/aegra-cli
[project]
name = "aegra-workspace"
version = "0.0.0"
requires-python = ">=3.12"
[tool.uv]
package = false
[tool.uv.workspace]
members = ["libs/*"]
[dependency-groups]
dev = [
"pre-commit>=4.0.1",
]
[tool.ruff]
line-length = 120
target-version = "py312"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
"ARG", # flake8-unused-arguments
"SIM", # flake8-simplify
]
ignore = [
"E501", # line too long (handled by formatter)
"B008", # do not perform function calls in argument defaults
"B904", # Within an except clause, raise exceptions with `raise ... from err`
"ARG001", # Unused function argument
"ARG002", # Unused method argument
"ARG005", # Unused lambda argument
"SIM108", # Use ternary operator (less readable in many cases)
]
[tool.ruff.lint.isort]
known-first-party = ["aegra_api", "aegra_cli"]
# Note: pytest config is in each package's pyproject.toml
# Run tests from: libs/aegra-api or libs/aegra-cli
# ty replaces mypy for type checking. It uses its own rule system rather than
# mypy-style strictness flags. Severity and per-rule overrides go in
# [tool.ty.rules]; see https://docs.astral.sh/ty/reference/rules/ for details.
[tool.ty.environment]
python-version = "3.12"
[tool.bandit]
exclude_dirs = ["tests", ".venv"]
skips = [
"B101", # assert statements
"B404", # import subprocess (needed for CLI)
"B603", # subprocess without shell=True (needed for CLI)
"B607", # partial executable path (needed for CLI to run docker, systemctl, etc.)
]