-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
102 lines (89 loc) · 2.23 KB
/
pyproject.toml
File metadata and controls
102 lines (89 loc) · 2.23 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[project]
name = "api_server"
authors = [
{ name = "Wolfgang Miller", email = "w-miller@t-online.de" },
]
description = "API server starter project"
readme = "README.md"
license = "MIT"
requires-python = ">=3.14,<4.0"
classifiers = [
'Intended Audience :: Developers',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.14',
]
version = "0.1.0"
dependencies = [
"fastapi>=0.118.2",
"uvicorn>=0.27.0",
"typer>=0.9.0",
"python-dotenv>=1.0.0",
"loguru>=0.7.0",
"strawberry-graphql[fastapi]>=0.291.0",
"jinja2>=3.1.0",
"sqlmodel>=0.0.24",
"sqlalchemy>=2.0.27",
"psycopg>=3.2.10",
"psycopg-binary>=3.2.10",
"alembic>=1.13.1",
"tenacity>=9.0.0",
"pydantic-settings>=2.2.1",
"arrow>=1.3.0",
]
[project.optional-dependencies]
dev = [
"ruff>=0.3.0",
"pytest>=7.0.0",
"pytest-cov>=4.0.0",
"pytest-asyncio>=0.23.0",
"pre-commit>=4.3.0",
]
watch = [
"watchfiles>=0.19.0",
]
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-data]
api_server = ["home/*.html"]
[project.scripts]
api-server = "api_server.main:app"
api-server-cli = "api_server.cli.__main__:main"
[tool.ruff]
target-version = "py314"
extend-exclude = ["src/api_server/__version__.py"]
line-length = 130
[tool.ruff.lint]
ignore = [
"B008", # Function call in argument defaults (false positive for Typer)
"UP046", # Generic class uses Generic subclass (false positive with modern Python generics)
]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"C90", # McCabe cyclomatic complexity
"SIM", # flake8-simplify
"UP", # pyupgrade
"ARG001" # unused arguments in functions
]
[tool.ruff.lint.mccabe]
max-complexity = 10
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.ruff.lint.isort]
known-first-party = ["api_server"]
[tool.flake8]
max-line-length = 150
[tool.pylint.FORMAT]
max-line-length = 150
[tool.pytest.ini_options]