-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
84 lines (69 loc) · 1.58 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
version = "0.1.0"
name = "faststream_cookiecutter_test"
dependencies = [
"faststream[kafka, docs]>=0.1.5",
]
[project.optional-dependencies]
lint = [
"black==23.9.1",
"ruff==0.0.291",
"pyupgrade-directories",
]
static-analysis = [
"types-PyYAML",
"types-setuptools",
"types-ujson",
"mypy==1.5.1",
"bandit==1.7.5",
]
testing = [
"pytest==7.4.2",
"pytest-asyncio==0.21.1",
]
dev = ["faststream_cookiecutter_test[lint,static-analysis,testing]"]
[tool.pytest.ini_options]
filterwarnings =["ignore::DeprecationWarning"]
[tool.mypy]
strict = true
python_version = "3.8"
ignore_missing_imports = true
install_types = true
non_interactive = true
# from https://blog.wolt.com/engineering/2021/09/30/professional-grade-mypy-configuration/
disallow_untyped_defs = true
no_implicit_optional = true
check_untyped_defs = true
warn_return_any = true
show_error_codes = true
warn_unused_ignores = true
disallow_incomplete_defs = true
disallow_untyped_decorators = true
disallow_any_unimported = false
[tool.black]
line-length = 88
target-version = ['py38']
include = '\.pyi?$'
[tool.ruff]
fix = true
line-length = 88
target-version = "py38"
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"C", # flake8-comprehensions
"B", # flake8-bugbear
"Q", # flake8-quotes
]
ignore = [
"E501", # line too long, handled by black
"C901", # too complex
]
[tool.ruff.pydocstyle]
convention = "google"
[tool.bandit]