-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
74 lines (65 loc) · 1.51 KB
/
pyproject.toml
File metadata and controls
74 lines (65 loc) · 1.51 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
[build-system]
requires = ["poetry-core>=2.0,<3.0"]
build-backend = "poetry.core.masonry.api"
[project]
name = "example-app"
version = "0.1.0"
description = "Python example app incorporating best practices"
authors = [{ name = "yxtay", email = "5795122+yxtay@users.noreply.github.com" }]
license = "MIT"
requires-python = ">=3.11,<4.0"
dependencies = [
"fastapi[all]>=0.115",
"gunicorn>=23.0",
"loguru>=0.7",
"sqlmodel>=0.0",
"typer>=0.15",
]
[dependency-groups]
dev = [
"mypy~=1.15",
"pytest~=9.0",
"pytest-cov~=7.0",
"pytest-env~=1.1",
"pytest-mock~=3.14",
"pytest-xdist[psutil]~=3.6",
]
compile = [
"pyinstaller~=6.13 ; sys_platform == 'linux'",
"scons~=4.9 ; sys_platform == 'linux'",
"staticx~=0.14 ; sys_platform == 'linux'",
]
[tool.isort]
profile = "black"
float_to_top = true
src_paths = [".", "src", "tests"]
[[tool.mypy.overrides]]
module = "gunicorn.*"
ignore_missing_imports = true
[tool.pytest.ini_options]
addopts = [
"-ra",
"-v",
"--strict-markers",
"--import-mode=importlib",
"--cov=src",
"--numprocesses=logical",
]
[tool.ruff]
fix = true
src = [".", "src", "tests"]
extend-include = ["*.ipynb"]
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"D", # pydocstyle
"E501", # line-too-long
"COM812", # missing-trailing-comma # conflicts with ruff formatter
"ISC001", # single-line-implicit-string-concatenation # conflicts with ruff formatter
]
[tool.ruff.lint.pydocstyle]
convention = "pep257"
[tool.ruff.lint.per-file-ignores]
"**/tests/**" = [
"S101", # assert
]