-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
pyproject.toml
187 lines (173 loc) · 4.18 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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
[tool.black]
line-length = 80
preview = true
[tool.ruff]
line-length = 120
target-version = "py313"
[tool.ruff.lint]
select = [
# Pyflakes
"F",
# pycodestyle
"E",
"W",
# isort
"I",
# pyupgrade
"UP",
# flake8-2020
"YTT",
# flake8-async
"ASYNC",
# flake8-bandit
"S",
# flake8-blind-except
"BLE",
# flake8-bugbear
"B",
# flake8-commas
"COM",
# flake8-comprehensions
"C4",
# flake8-debugger
"T10",
# flake8-future-annotations
"FA",
# flake8-implicit-str-concat
"ISC",
# flake8-no-pep420
"INP",
# flake8-pie
"PIE",
# flake8-pyi
"PYI",
# flake8-pytest-style
"PT",
# flake8-quotes
"Q",
# flake8-raise
"RSE",
# flake8-return
"RET",
# flake8-slots
"SLOT",
# flake8-simplify
"SIM",
# flake8-type-checking
"TC",
# flake8-use-pathlib
"PTH",
# eradicate
"ERA",
# Pylint
"PLC",
"PLE",
"PLR",
"PLW",
# tryceratops
"TRY",
# flynt
"FLY",
# Perflint
"PERF",
# refurb
"FURB",
# Ruff-specific rules
"RUF",
]
ignore = [
# flake8-bandit
"S311", # Standard pseudo-random generators are not suitable for cryptographic purposes
# flake8-pytest-style
"PT011", # pytest.raises({exception}) is too broad, set the match parameter or use a more specific exception
# tryceratops
"TRY003", # Avoid specifying long messages outside the exception class
"TRY301", # Abstract raise to an inner function
# pyupgrade
"UP040", # Type alias {name} uses TypeAlias annotation instead of the type keyword - mypy does not support this yet
# Pylint
"PLR09", # Too many {problem}
"PLR2004", # Magic value used in comparison, consider replacing {value} with a constant variable
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = [
# flake8-bandit
"S101", # Use of assert detected
]
"yui/migrations/*" = [
# eradicate
"ERA001", # Found commented-out code
]
"yui/migrations/versions/*" = [
# flake8-no-pep420
"INP001", # File {filename} is part of an implicit namespace package. Add an __init__.py.
]
[tool.ruff.lint.isort]
force-single-line = true # 한 줄 당 1개의 import 문
order-by-type = false # 모두 대문자인 요소를 우선정렬하는 부분 비활성화
case-sensitive = true # 대소문자 구분을 켜야 대문자 요소가 우선정렬됨
known-first-party = ["yui"]
section-order = ["future", "standard-library", "third-party", "tests", "first-party", "local-folder"]
[tool.ruff.lint.isort.sections]
tests = ["tests"]
[tool.pytest.ini_options]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
[tool.mypy]
python_version = "3.13"
ignore_missing_imports = true
warn_unused_ignores = true # Warns about unneeded # type: ignore comments.
show_error_codes = true
[tool.poetry]
name = "yui"
version = "0.0.0"
description = "YUI is Multi-purpose Slack Bot."
authors = ["Kim, Jin Su <item4@localhost.com>"]
license = "MIT"
[tool.poetry.dependencies]
python = ">=3.13,<3.14"
aiocron = "^1.8"
aiohttp = "^3.11.11"
alembic = "^1.14.0"
asyncclick = "^8.1.7.2"
attrdict = "^2.0.1"
attrs = "^24.3.0"
babel = "^2.16.0"
croniter = "^5.0.1"
cssselect = "^1.2.0"
defusedxml = "^0.7.1"
discord-webhook = {version = "^1.3.1", extras = ["async"]}
feedparser = "^6.0.11"
lxml = "^5.3.0"
more-itertools = "^10.5.0"
orjson = "^3.10.12"
psycopg = {version = "^3.2.3", extras = ["binary"]}
python-dateutil = "^2.9.0"
rapidfuzz = "^3.11.0"
redis = {version = "^5.2.1", extras = ["hiredis"]}
scipy = "^1.14.1"
sqlalchemy = {version = "^2.0.36", extras = ["asyncio"]}
sqlalchemy-utils = "^0.41.2"
sympy = "^1.13.3"
tossicat-python = "^0.1.3"
tzlocal = "^5.2"
yarl = "^1.18.3"
[tool.poetry.group.dev.dependencies]
aioresponses = "^0.7.7"
black = "^24.10.0"
mypy = "^1.13.0"
pre-commit = "^4.0.1"
pytest = "^8.3.4"
pytest-asyncio = "^0.24.0"
pytest-cov = "^6.0.0"
ruff = "^0.8.4"
time-machine = "^2.16.0"
types-croniter = "^4.0.0"
types-orjson = "^3.6.2"
types-python-dateutil = "^2.9.0"
types-tzlocal = "^5.1.0"
[tool.poetry.scripts]
yui = "yui.cli:main"
[build-system]
requires = ["poetry_core>=1.0.0"]
build-backend = "poetry.core.masonry.api"