-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
101 lines (86 loc) · 2.4 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
[tool.black]
exclude = '(\.git|\.mypy_cache|\.venv)'
include = '\.pyi?$'
target-version = ['py312']
line-length = 88
[tool.isort]
profile = "black"
[tool.pylint.master]
extension-pkg-allow-list = ["pydantic"]
fail-under = "9"
ignore = [
]
load-plugins = ["pylint.extensions.no_self_use", "pylint_pydantic"]
[tool.pylint.format]
max-line-length = "88"
#[tool.pylint.messages_control]
#disable = "bad-whitespace, trailing-whitespace"
[tool.pylint.miscellaneous]
notes = "FIXME,XXX,TODO,TODO,fixme,todo,TODO:"
[tool.pylint.design]
min-public-methods = 1
#max-attributes = 8
[tool.pytest.ini_options]
addopts = "--strict-markers"
junit_family = "xunit2"
log_date_format = "%Y-%m-%d %H:%M:%S"
log_file_date_format = "%Y-%m-%d %H:%M:%S"
log_file_format = "%(asctime)s:%(name)s:%(funcName)s():%(levelname)s:%(message)s"
log_format = "%(asctime)s:%(name)s:%(funcName)s():%(levelname)s:%(message)s"
markers = [
"unit: marks tests as unit tests",
"api: marks tests as api tests",
"integration: marks tests as integration with other components",
]
testpaths = ["tests"]
[tool.coverage.report]
omit = [
"**/__init__.py",
".mypy_cache",
"**/tests/*",
"**/src/run_server.py", # omit entry point files
]
show_missing = true
exclude_lines = [
"pragma: no cover",
"@abstractmethod",
]
[tool.coverage.run]
omit = ["*/__init__.py", ".mypy_cache", ".reports", ".git"]
[tool.mypy]
plugins = "pydantic.mypy"
ignore_missing_imports = "true"
disallow_untyped_defs = "true"
show_error_codes = "true"
[tool.poetry]
package-mode = false
name = "demo-tpl-py"
version = "0.1.0"
description = "Demo template for python backend"
authors = ["Stanislav Petrov <stanislav.i.petrov@gmail.com>"]
license = "MIT"
[tool.poetry.dependencies]
python = "^3.12.7"
fastapi = "^0"
uvicorn = {version = "^0.32.0", extras = ["standard"]}
pydantic = {version = "^2.0.2", extras = ["email", "dotenv"]}
python-jose = {extras = ["cryptography"], version = "^3.3"}
passlib = {extras = ["bcrypt"], version = "^1.7.4"}
httpx = "^0"
pydantic-settings = "^2.0.1"
ecs-logging = "^2.1.0"
[tool.poetry.group.dev.dependencies]
black = {version = "^24.2.0", extras = ["d"]}
isort = "^5.10.1"
mypy = "~1"
pylint = "^3.0.0"
pytest = "^8.0.0"
pytest-cov = "^6.0.0"
pydevd-pycharm = ">=232.5150.120"
autoflake = "^2.0.0"
anyio = "^4.3.0"
pre-commit = "^4.0.1"
pylint-pydantic = "^0.3.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"