-
-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathpyproject.toml
118 lines (110 loc) · 2.94 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
[tool.poetry]
name = "cent"
version = "5.0.0"
description = "Python library to communicate with Centrifugo v5 server HTTP API"
authors = ["Alexander Emelin", "Katant Savelev", "Bogdan Evstratenko"]
license = "MIT"
readme = 'README.md'
classifiers = [
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: Apache Software License",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Software Development",
"Topic :: System :: Networking",
"Topic :: Terminals",
"Topic :: Text Processing",
"Topic :: Utilities",
]
[tool.poetry.dependencies]
python = "^3.9"
aiohttp = "^3"
pydantic = "^2"
requests = "^2"
types-requests = "^2"
[tool.poetry.group.dev.dependencies]
pre-commit = "^3.6.0"
ruff = "^0.1.15"
mypy = "^1.8.0"
pytest = "^8"
pytest-benchmark = "^4.0.0"
pytest-asyncio = "^0.23.5"
[tool.ruff]
preview = true
line-length = 99
select = [
"PL", # pylint
"F", # pyflakes
"E", # pycodestyle errors
"W", # pycodestyle warnings
"C90", # mccabe
"N", # pep8-naming
"YTT", # flake8-2020
"S", # flake8-bandit
"B", # flake8-bugbear
"A", # flake8-builtins
"C40", # flake8-comprehensions
"T10", # flake8-debugger
"EXE", # flake8-executable
"ICN", # flake8-import-conventions
"G", # flake8-logging-format
"PIE", # flake8-pie
"T20", # flake8-print
"PT", # flake8-pytest-style
"SIM", # flake8-simplify
"TID", # flake8-tidy-imports
"TCH", # flake8-type-checking
"ARG", # flake8-unused-arguments
"PGH", # pygrep-hooks
"RSE", # flake8-raise
"RUF", # ruff
]
ignore = [
"PLR0913", # too-many-arguments
"PGH003", # use specific rule code when ignore
"T201",
"PLR0917",
"PLR0904", # Centrifugo has many API methods
]
[tool.ruff.per-file-ignores]
"tests/*" = ["S101", "PT012"]
[tool.mypy]
strict = true
python_version = "3.9"
show_error_codes = true
show_error_context = true
pretty = true
ignore_missing_imports = false
warn_unused_configs = true
disallow_subclassing_any = true
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
plugins = ["pydantic.mypy"]
[tool.pydantic-mypy]
warn_required_dynamic_aliases = true
[[tool.mypy.overrides]]
module = [
"pytest_benchmark.*"
]
ignore_missing_imports = true
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"