-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
71 lines (62 loc) · 1.5 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
[project]
name = "fast-log-queue"
version = "0.1.0"
requires-python = ">= 3.11"
description = "Monorepo for API, worker, and infrastructure"
authors = [{ name = "Dragos Catarahia", email = "dragos@catarahia.me" }]
dependencies = [
"alembic>=1.13.1, <1.14",
"asyncpg>=0.29.0, <0.30",
"boto3>=1.34.113, <1.35",
"fastapi[all]>=0.1.16,<2.0.0",
"mangum>=0.17.0, <0.18",
"psycopg2-binary>=2.9.9, <3",
"sqlalchemy>=2.0.30, <2.1",
]
[project.optional-dependencies]
dev = [
"anyio",
"aws-cdk-lib",
"greenlet",
"httpx",
"moto[sqs]",
"pre-commit",
"pytest",
"testcontainers",
]
[tool.black]
line-length = 120
target-version = ['py311']
include = '\.pyi?$'
exclude = '''
/(
\.git
| \.ruff_cache
| .*/\.venv
)/
'''
[tool.pytest.ini_options]
python_files = ["test_*.py", "*_test.py", "tests.py"]
[tool.pyright]
exclude = ["alembic", "cdk"]
venvPath = "."
venv = ".venv"
# https://github.com/RobertCraigie/pyright-python?tab=readme-ov-file#pre-commit
[tool.ruff]
line-length = 120
[tool.ruff.lint]
# pyflakes, pycodestyle, isort
select = ["F", "E", "W", "I001"]
ignore = [
"E402", # module-import-not-at-top-of-file
"E501", # line-too-long (black handles this)
"E711", # none-comparison
"E712", # true-false-comparison
]
exclude = [".venv", ".git", ".ruff_cache"]
[tool.ruff.lint.isort]
default-section = "third-party"
known-third-party = ["fastapi", "boto3", "sqlalchemy"]
combine-as-imports = true
[tool.ruff.lint.isort.sections]
testing = ["pytest"]