-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
74 lines (64 loc) · 1.64 KB
/
pyproject.toml
File metadata and controls
74 lines (64 loc) · 1.64 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
[project]
name = "csss-site-backend"
version = "0.1"
requires-python = "~=3.11.0" # older versions untested, but we use new features often
dependencies = [
# major
"fastapi==0.115.6",
"gunicorn==21.2.0",
"uvicorn[standard]==0.27.1",
"sqlalchemy[asyncio]==2.0.27",
"asyncpg==0.29.0",
"alembic==1.13.1",
"google-api-python-client==2.143.0",
# minor
"pyOpenSSL==24.0.0", # for generating cryptographically secure random numbers
"xmltodict==0.13.0",
"requests==2.31.0",
]
[project.optional-dependencies]
dev = [
"ruff==0.6.9", # linting and formatter
]
test = [
"pytest", # test framework
"pytest-asyncio",
"httpx",
]
[project.urls]
Homepage = "https://api.sfucsss.org/"
# Pytest: Test framework
[tool.pytest.ini_options]
pythonpath = ["src"]
log_cli = true
log_cli_level = "INFO"
testpaths = [
"tests",
]
norecursedirs = "tests/wip"
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
# Ruff: Formatter and linter
[tool.ruff]
line-length = 120
indent-width = 4
target-version = "py311"
exclude = [
"src/alembic/*"
]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
line-ending = "lf"
[tool.ruff.lint]
select = ["E", "F", "B", "I", "N", "UP", "A", "PTH", "W", "RUF", "C4", "PIE", "Q", "FLY"] # "ANN"
ignore = ["E501", "F401", "N806"]
# [Based]Pyright: Type checker/LSP
[tool.pyright]
executionEnvironments = [
{ root = "src", pythonVersion = "3.11" },
{ root = "tests", extraPaths=["src"], pythonVersion = "3.11" }
]
typeCheckingMode = "standard"
reportAny = "none" # Allow the use of `Any` type
reportExplicitAny = "none" # Allow the declaration of `Any` type