-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
140 lines (125 loc) · 3.67 KB
/
Copy pathpyproject.toml
File metadata and controls
140 lines (125 loc) · 3.67 KB
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
140
[tool.poetry]
name = "stepik-plugins-client"
version = "2.1.0"
description = "Stepik plugins SDK"
authors = ["Hyperskill Team"]
readme = "README.md"
packages = [
{include = "stepik_plugins_client"},
{include = "stepic_plugins"}
]
[tool.poetry.dependencies]
python = "^3.12"
oslo-messaging = { version = "14.8.0", extras = ["amqp1"] }
pytz = ">=2023.3"
structlog = ">=23.1.0"
voluptuous = "^0.14.2"
[tool.poetry.group.dev.dependencies]
mypy = "^1.10.0"
ruff = "^0.4.7"
types-pytz = ">=2023.3.0.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
# Exclude a variety of commonly ignored directories.
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".hg",
".mypy_cache",
".nox",
".pants.d",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
]
target-version = "py312"
[tool.ruff.lint]
select = [
"ALL",
]
ignore = [
"ANN002", # Missing type annotation for `*args`
"ANN003", # Missing type annotation for `**kwargs`
"ANN101", # Missing type annotation for `self` in method
"ANN102", # Missing type annotation for `cls` in classmethod
"ANN401", # Dynamically typed expressions (typing.Any) are disallowed in
"CPY001", # Missing copyright notice at top of file
"D100", # Missing docstring in public module
"D101", # Missing docstring in public class
"D103", # Missing docstring in public function
"D104", # Missing docstring in public package
"D105", # Missing docstring in magic method
"D107", # Missing docstring in __init__
"E203", # Whitespace before ':'
"S101", # Use of `assert` detected
# Ruff format recommend disable trid rule
"COM812", # Trailing comma missing
"COM819", # Checks for the presence of prohibited trailing commas
"D206", # Docstring should be indented with spaces, not tabs
"D300", # Use """triple double quotes"""
"E111", # Indentation is not a multiple of four
"E114", # Indentation is not a multiple of four (comment)
"E117", # Over-indented
"ISC001", # Conflict with ruff format | Checks for implicitly concatenated strings on a single line.
"ISC002", # Checks for implicitly concatenated strings across multiple lines.
"Q000", # Conflict with ruff format | Remove bad quotes
"Q001", # Checks for multiline strings that use single quotes or double quotes
"Q002", # Checks for docstrings that use single quotes or double quotes
"Q003", # Conflict with ruff format | Change outer quotes to avoid escaping inner quotes
"W191", # Indentation contains tabs
]
[tool.ruff.lint.per-file-ignores]
[tool.ruff.lint.mccabe]
max-complexity = 9
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.pep8-naming]
classmethod-decorators = [
"classmethod",
"django.utils.decorators.classonlymethod",
"django.utils.functional.classproperty"
]
[tool.ruff.lint.pylint]
max-args = 5
max-branches = 8
max-returns = 9
max-statements = 9
max-locals = 4
[tool.ruff.lint.isort]
combine-as-imports = true
known-third-party = ["elasticsearch"]
order-by-type = false
required-imports = ["from __future__ import annotations"]
[tool.mypy]
python_version = "3.12"
check_untyped_defs = true
disallow_any_generics = true
disallow_untyped_calls = true
disallow_untyped_decorators = true
explicit_package_bases = true
ignore_errors = false
ignore_missing_imports = true
implicit_reexport = true
strict_equality = true
strict_optional = true
warn_no_return = true
warn_redundant_casts = true
warn_unreachable = true
warn_unused_configs = true
warn_unused_ignores = true
exclude = [
"venv"
]