-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpyproject.toml
95 lines (81 loc) · 2.27 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
[tool.poetry]
name = "cs2-battle-bot"
version = "0.0.11"
description = ""
authors = ["Adrian Ciolek <ciolek.adrian@protonmail.com>"]
readme = "README.md"
packages = [{include = "bot/"}]
[tool.poetry.dependencies]
python = "^3.11"
py-cord = "^2.5.0"
python-dotenv = "^1.0.1"
redis = "^5.0.2"
prettytable = "^3.10.0"
taskipy = "^1.12.2"
pycord-i18n = "^1.2.1"
pydantic = "^2.7.0"
pydantic-settings = "^2.2.1"
cs2-battle-bot-api-client = "^0.0.23"
[tool.poetry.group.dev.dependencies]
ruff = "^0.3.0"
pre-commit = "^3.6.2"
markdown-exec = ">=1.3.0"
mkdocs-material = ">=8.2,<10.0.0"
mkdocstrings = { version = ">=0.19.0", extras = ["python"] }
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.taskipy.tasks]
start = "python -m bot"
[tool.ruff]
exclude = ["tests/"]
lint.select = ["ALL"]
lint.ignore = [
# Description: Missing type annotation for self in method
# Rationale: It is mostly redundant, as is for ANN102.
"ANN101",
# Description: Missing type annotation for cls in method
# Rationale: It is mostly redundant, as is for ANN101.
"ANN102",
# Description: Dynamically typed expressions (typing.Any) are disallowed
# Rationale:
# We use Any to allow user to constrain return types of our functions on their own.
# For example, having a function `def foo() -> Any: ...` allows user to write
# `my_foo: int = foo()` and have it passed type checking, since `Any` disables
# type checking completely.
"ANN401",
# Description: 1 blank line required before class docstring
# Rationale: Remove the warning -- D211 (no-blank-line-before-class) preferred.
"D203",
# Description: Multi-line docstring summary should start at the second line
# Rationale: Remove the warning -- D213 (multi-line-summary-second-line) preferred.
"D212",
# Description: Line contains TODO, consider resolving the issue
# Rationale: Not appropriate for the project.
"FIX002",
"D401",
"ISC001",
"COM812",
"E501",
"RUF012",
"T201",
"TCH001",
"TCH002",
"A003",
"ARG002",
"C901",
"PLR0913",
"PLR0911",
"PLR0912",
"PLR0915",
"PLR2004",
"A001",
"D417",
"TD002",
"TD003",
"TD004",
"PD011",
"BLE001",
"D107",
"D101"
]