-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
69 lines (59 loc) · 1.35 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
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "example-app"
version = "0.1.0"
description = "Python example app incorporating best practices"
authors = ["yxtay <[email protected]>"]
license = "MIT"
[tool.poetry.dependencies]
python = "^3.11"
fastapi = { extras = ["all"], version = "*" }
gunicorn = "*"
loguru = "*"
sqlmodel = "*"
typer = { extras = ["all"], version = "*" }
[tool.poetry.group.dev.dependencies]
mypy = "*"
pre-commit = "*"
pytest = "*"
pytest-cov = "*"
pytest-env = "*"
pytest-mock = "*"
pytest-xdist = "*"
ruff = "*"
commitizen = "*"
[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",
]
[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
]