-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpyproject.toml
88 lines (78 loc) · 1.92 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
80
81
82
83
84
85
86
87
88
[tool.poetry]
name = "fastapi-tile38"
version = "0.1.0"
description = "Use Tile38 via FastAPI"
authors = ["Benjamin Ramser <legionaerr@googlemail.com>"]
license = "MIT"
[tool.poetry.dependencies]
python = "^3.10"
fastapi = ">=0.110.0"
pyle38 = "^0.14.0"
pydantic = ">=2.9.0"
fastapi-key-auth = "^0.15.2"
pydantic-settings = "^2.3.4"
[tool.poetry.group.dev.dependencies]
pytest-asyncio = "^0.24.0"
pytest = "^8.3.4"
pre-commit = "^4.0.1"
gitlint = "^0.19.1"
poethepoet = "^0.32.1"
pytest-cov = "^6.0.0"
uvicorn = "^0.32.0"
requests = "^2.32.3"
httpx = "^0.28.1"
mypy = "^1.13.0"
ruff = "^0.9.2"
[mypy]
python_version = 3.10
ignore_missing_imports = true
[tool.ruff]
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".hg",
".mypy_cache",
".nox",
".pants.d",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
]
line-length = 88
target-version = "py310"
[tool.ruff.lint]
select = ["E", "F"]
ignore = ["E501"]
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.lint.mccabe]
# Unlike Flake8, default to a complexity level of 10.
max-complexity = 10
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.poe.tasks]
test = "poetry run pytest -vv --asyncio-mode=auto -s src/tests/"
test-cov = "poetry run pytest -vv --asyncio-mode=auto -s --cov=fastapi-tile38 src/tests/"
test-single = "poetry run pytest -vv --asyncio-mode=auto -s"
mypy = "poetry run mypy --ignore-missing-imports --config-file pyproject.toml"
lint = "ruff check ."
up = "docker-compose up"
down = "docker-compose down"
[build-system]
requires = ["poetry-core>=1.2.0"]
build-backend = "poetry.core.masonry.api"