-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
92 lines (78 loc) · 2.01 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
[tool.poetry]
name = "template"
version = "0.1.0"
description = ""
authors = ["Tomas Sanchez <info@tomsanchez.com.ar>"]
readme = "README.md"
packages = [{ include = "template", from = "src" }]
[tool.poetry.dependencies]
python = "^3.10"
fastapi = "^0.101.0"
uvicorn = "^0.23.2"
pydantic-settings = "^2.0.2"
pydantic = { extras = ["email"], version = "^2.1.1" }
[tool.poetry.group.dev.dependencies]
pytest = "^7.4.0"
coverage = { extras = ["toml"], version = "^7.2.7" }
pre-commit = "^3.3.3"
black = "^23.7.0"
pylint = "^2.17.5"
isort = "^5.12.0"
mypy = "^1.4.1"
flake8 = "^6.1.0"
httpx = "^0.24.1"
pytest-cov = "^4.1.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.black]
line-length = 120
target-version = ['py310']
include = '\.pyi?$'
[tool.coverage.run]
branch = true
omit = ['tests/*', 'src/template/asgi.py', 'src/**/__init__.py']
[tool.coverage.report]
show_missing = true
ignore_errors = true
exclude_lines = ["pragma: no cover", "raise NotImplementedError", "if TYPE_CHECKING:", "if __name__ == .__main__.:"]
[tool.isort]
known_first_party = "template"
line_length = 120
multi_line_output = 3
use_parentheses = true
include_trailing_comma = true
ensure_newline_before_comments = true
force_grid_wrap = 0
[tool.mypy]
ignore_missing_imports = true
[tool.pylint.basic]
max-line-length = 120
argument-rgx = "[a-z_][a-z0-9_]{0,30}$"
function-rgx = "[a-z_][a-z0-9_]*$"
variable-rgx = "[a-z_][a-z0-9_]{0,30}$"
good-names = ["logger", "i", "j", "k", "ex", "Run", "T"]
bad-names = ["l", "I", "O"]
ignore-patterns = "test_.*?py"
[tool.pylint.logging]
logging-modules = "logging"
[tool.pylint.messages_control]
disable = [
"fixme",
"no-member",
"unused-argument",
"too-few-public-methods",
"duplicate-code",
"no-name-in-module",
"no-self-argument",
"missing-class-docstring",
]
[tool.pylint.reports]
reports = false
[tool.pytest.ini_options]
pythonpath = ["src"]
testpaths = "tests"
python_files = "test_*.py"
junit_family = "xunit1"
log_cli = false
log_level = "DEBUG"