-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
62 lines (53 loc) · 1.23 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
[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 = "wyextay@gmail.com" }]
license = "MIT"
requires-python = "~=3.11"
dependencies = ["fastapi[all]", "gunicorn", "loguru", "sqlmodel", "typer"]
[dependency-groups]
dev = [
"mypy",
"pytest",
"pytest-cov",
"pytest-env",
"pytest-mock",
"pytest-xdist",
]
[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
]