This repository was archived by the owner on Feb 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpyproject.toml
More file actions
63 lines (55 loc) · 1.44 KB
/
pyproject.toml
File metadata and controls
63 lines (55 loc) · 1.44 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
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "python-project-template"
version = "0.1.0"
description = ""
authors = ["YuXuan Tay <wyextay@gmail.com>"]
license = "MIT"
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.11"
fastapi = "*"
gunicorn = "*"
pydantic = { extras = ["dotenv"], version = "*" }
python-dotenv = "*"
python-json-logger = "*"
typer = "*"
uvicorn = "*"
pydantic-settings = "*"
[tool.poetry.group.dev.dependencies]
fastapi = { extras = ["all"], version = "*" }
mypy = "*"
pre-commit = "*"
pytest = "*"
pytest-cov = "*"
ruff = "*"
commitizen = "*"
[tool.isort]
# compatible with psf/black
# https://pycqa.github.io/isort/docs/configuration/black_compatibility/
# https://github.com/psf/black/blob/master/docs/compatible_configs.md
profile = "black"
float_to_top = true
src_paths = [".", "src", "tests"]
[tool.pytest.ini_options]
addopts = ["-ra", "-v", "--strict-markers", "--import-mode=importlib", "--cov"]
minversion = "6.0"
[tool.ruff]
fix = true
src = [".", "src", "tests"]
extend-include = ["*.ipynb"]
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
]