-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
139 lines (127 loc) · 3 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
132
133
134
135
136
137
138
139
[tool.poetry]
name = "aiogram-template"
version = "1.2.0"
description = "This is just a project template for writing telegram bots."
authors = ["Ilia Soltanov [email protected]"]
license = "MIT"
readme = "README.md"
packages = [{ include = "aiogram-template" }]
[tool.poetry.dependencies]
python = "^3.12"
aiogram = "^3.15.0"
sqlalchemy = "^2.0.36"
greenlet = "^3.1.1"
aiosqlite = "^0.19.0"
ujson = "^5.10.0"
[tool.poetry.group.dev.dependencies]
black = { version = ">=24.10.0", allow-prereleases = true }
isort = "^5.13.2"
#mypy = "^1.8.0"
flake8 = "^7.1.1"
flake8-pyproject = "^1.2.3"
flake8-bandit = "^4.1.1"
flake8-broken-line = "^1.0.0"
flake8-comprehensions = "^3.16.0"
flake8-debugger = "^4.1.2"
flake8-docstrings = "^1.7.0"
flake8-eradicate = "^1.5.0"
flake8-isort = "^6.1.1"
flake8-quotes = "^3.4.0"
flake8-string-format = "^0.3.0"
flake8-bugbear = "^24.10.31"
flake8-rst-docstrings = "^0.3.0"
pylint = "^3.3.1"
safety = "^3.2.11"
bandit = "^1.7.10"
[tool.bandit]
exclude_dirs = [
"venv",
".venv",
]
[tool.flake8]
max-line-length = 140
exclude = [
"venv/*",
".venv/*",
]
ignore = [
"C812", # missing trailing comma
"D100", # Missing docstring in public module
"D101", # Missing docstring in public class
"D102", # Missing docstring in public method
"D103", # Missing docstring in public function
"D104", # Missing docstring in public package
"D105", # Missing docstring in magic method
"D106", # Missing docstring in public nested class
"D107", # Missing docstring in __init__
"D401", # First line should be in imperative mood
"W503", # line break before binary operator
]
[tool.pylint.design]
min-public-methods = 0
max-public-methods = 50
max-args = 6
[tool.pylint.format]
max-line-length = 140
max-module-lines = 500
max-locals = 20
[tool.black]
line-length = 140
target-version = ['py38']
exclude = '''
(
\.eggs
|\.git
|\.hg
|\.mypy_cache
|\.nox
|\.tox
|\.venv
|venv
|_build
|buck-out
|build
|dist
)
'''
[tool.isort]
line_length = 140
sections = ["FUTURE", "STDLIB", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER"]
multi_line_output = 3
src_paths = "./app"
lines_after_imports = 2
[tool.pylint.typecheck]
ignored-classes = [
"ujson",
]
[tool.pylint."messages control"]
disable = [
"unsubscriptable-object",
"broad-exception-caught",
"missing-module-docstring",
"missing-class-docstring",
"missing-function-docstring",
]
[tool.mypy]
show_error_codes = true
show_error_context = true
pretty = true
ignore_missing_imports = false
warn_unused_configs = true
disallow_subclassing_any = false
disallow_any_generics = true
disallow_untyped_calls = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_return_any = true
follow_imports_for_stubs = true
namespace_packages = true
show_absolute_path = true
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"