-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
71 lines (61 loc) · 1.64 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 = "api"
version = "1.1.0"
description = "Opinionated wrapper for the Steam API. Goal is to scrape public data on TF2 severs."
authors = [
{name = "jayceslesar", email = "[email protected]"},
]
dependencies = [
"toml>=0.10.2",
"requests>=2.31.0",
"pydantic>=2.5.3",
"litestar[standard]>=2.9.1",
"alembic>=1.13.1",
"psycopg2-binary>=2.9.9",
"asyncpg>=0.29.0",
"greenlet>=3.0.3",
"uvicorn>=0.27.1",
"numpy>=1.26.4",
"minio>=7.2.7",
]
requires-python = ">=3.11,<3.13"
readme = "README.md"
license = {text = "MIT"}
[project.optional-dependencies]
dev = [
"mypy>=1.8.0",
"ruff>=0.1.9",
"pytest>=7.4.3",
"types-toml>=0.10.8.20240310",
"types-requests>=2.31.0.20240406",
"pgcli>=4.1.0",
"pytest-asyncio>=0.23.7",
"debugpy>=1.8.1",
]
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[tool.pdm]
includes = ["masterbase"]
[tool.pdm.scripts]
format.shell = "ruff format masterbase tests && ruff check masterbase tests --fix"
lint.shell = "ruff check masterbase tests"
app = "masterbase/app.py"
[tool.pytest.ini_options]
testpaths = ["tests"]
markers = [
"integration: run integration tests (deselect with '-m \"not integration\"')",
]
[tool.mypy]
files = ["masterbase", "tests"]
explicit_package_bases = true
# See https://github.com/astral-sh/ruff#configuration
[tool.ruff.lint]
select = ["F", "E", "I001", "W", "N", "D"]
ignore = ["D413"]
[tool.ruff.lint.pydocstyle]
convention = "pep257"
[tool.ruff]
include = ["pyproject.toml", "masterbase/**/*.py", "tests/**/*.py"]
line-length = 120
target-version = "py311" # defaults to 3.8, but this repo targets 3.9%