-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
79 lines (66 loc) · 1.72 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
[project]
name = "sbobot"
version = "0.0.1"
description = ""
requires-python = "==3.12.9"
dependencies = [
"aiohttp==3.11.13",
"boto3==1.37.4",
"fastapi-slim==0.115.10",
"orjson==3.10.15",
"python-gitlab==5.6.0",
"structlog==25.1.0",
"uvicorn[standard]==0.34.0",
"yarl==1.18.3",
]
[tool.uv]
dev-dependencies = [
"boto3-stubs-lite[ssm]==1.37.4",
"pyright==1.1.395",
"pytest==8.3.4",
"pytest-dotenv==0.5.2",
"ruff==0.9.9",
"ruff-lsp==0.0.62",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.pyright]
reportMissingTypeStubs = "none"
reportUnnecessaryTypeIgnoreComment = "error"
typeCheckingMode = "strict"
[tool.pytest.ini_options]
env_override_existing_values = 1
env_files = [".test.env"]
filterwarnings = [
"error",
"ignore:datetime.datetime.utcnow", # TODO boto3 currently emits a Warning on python 3.12.
"ignore:datetime.datetime.utcfromtimestamp", # TODO boto3 currently emits a Warning on python 3.12.
]
[tool.ruff]
lint.select = ["ALL"]
lint.ignore = [
"D", # disable docstring checks
"E501", # black handles long line wrapping
"COM812", # conflicts with ruff format
"ISC001", # conflicts with ruff format
]
target-version = "py311"
[tool.ruff.lint.flake8-annotations]
allow-star-arg-any = true
mypy-init-return = true
suppress-dummy-args = true
[tool.ruff.lint.flake8-bugbear]
extend-immutable-calls = ["fastapi.Depends", "fastapi.Security"]
[tool.ruff.lint.flake8-type-checking]
quote-annotations = true
runtime-evaluated-base-classes = ["pydantic.BaseModel"]
[tool.ruff.lint.mccabe]
max-complexity = 20
[tool.ruff.lint.per-file-ignores]
"tests/**/*.py" = [
"S101", # allow assert in tests
]
[tool.ruff.lint.pylint]
max-branches = 30
max-statements = 60