-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
131 lines (107 loc) · 2.21 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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
[tool.poetry]
name = "python-project-template"
version = "0.0.1"
description = "Description."
license = "MIT"
authors = ["Author <author@author.com>"]
maintainers = ["Author <author@author.com>"]
repository = "https://github.com/ross-tsenov/python-project-template"
documentation = "https://github.com/ross-tsenov/python-project-template/tree/main/docs/"
readme = "README.md"
include = [
"src",
]
exclude = [
"docs/*",
"tests/*",
]
[tool.poetry.dependencies]
python = "^3.10.1"
python-dotenv = "^1.0.0"
pydantic-settings = "^2.2.1"
[tool.poetry.group.dev.dependencies]
ruff = "^0.0.285"
mypy = "^1.8.0"
pytest = "^7.4.4"
pre-commit = "^3.6.2"
[tool.poetry.group.docs]
optional = true
[tool.poetry.group.docs.dependencies]
mkdocs = "^1.5.3"
mkdocs-material = "^9.5.13"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
line-length = 122
target-version = "py310"
select = [
"A",
"B",
"E",
"F",
"G",
"I",
"N",
"W",
"Q",
"S",
"UP",
"C9",
"PT",
"ANN",
"PLC",
"PLE",
"PLR",
"PLW",
"SIM",
]
[tool.ruff.per-file-ignores]
"**/tests/*" = ["S101", "SIM117"]
"*init*.py" = ["F401"]
[tool.ruff.isort]
combine-as-imports = true
force-wrap-aliases = true
[tool.ruff.pylint]
max-args = 8
max-branches = 25
max-returns = 9
max-statements = 30
[tool.isort]
profile = "black"
line_length=122
multi_line_output=3
use_parentheses=true
include_trailing_comma=true
lines_between_types=1
[tool.mypy]
warn_no_return = true
disallow_subclassing_any = true
disallow_incomplete_defs = true
check_untyped_defs = true
warn_redundant_casts = true
warn_unused_ignores = false
allow_redefinition = true
pretty = true
follow_imports="silent"
ignore_missing_imports = true
show_error_codes = true
exclude = [
"__init__.py",
]
[tool.pytest.ini_options]
minversion = "6.0"
addopts = """
-ra \
-q \
--verbose \
--maxfail=1 \
--color=yes """
testpaths = ["tests/"]
python_files = ["*_test.py"]
python_functions = ["test_*"]
render_collapsed = true
filterwarnings = [
"ignore",
"default:::mymodule",
]