@@ -41,16 +41,16 @@ pyzmq = { version = "^23.2.0", optional = true, markers = "python_version < '3.1
4141# For speed
4242uvloop = { version = " >=0.16.0,<1" , optional = true , markers = " sys_platform != 'win32'" }
4343# For hot-reload.
44- watchdog = { version = " ^2.1.9 " , optional = true }
44+ watchdog = { version = " ^4 " , optional = true }
4545gitignore-parser = { version = " ^0" , optional = true }
4646pytz = " *"
47- orjson = { version = " ^3.9.9 " , optional = true }
47+ orjson = { version = " ^3" , optional = true }
4848msgpack = { version = " ^1.0.7" , optional = true }
49- cbor2 = { version = " ^5.4.6 " , optional = true }
49+ cbor2 = { version = " ^5" , optional = true }
5050
5151[tool .poetry .dev-dependencies ]
5252pytest = " ^7.1.2"
53- ruff = " ^0.0.291 "
53+ ruff = " ^0"
5454black = { version = " ^22.6.0" , allow-prereleases = true }
5555mypy = " ^1"
5656pre-commit = " ^2.20.0"
@@ -120,7 +120,7 @@ build-backend = "poetry.core.masonry.api"
120120[tool .ruff ]
121121# List of enabled rulsets.
122122# See https://docs.astral.sh/ruff/rules/ for more information.
123- select = [
123+ lint. select = [
124124 " E" , # Error
125125 " F" , # Pyflakes
126126 " W" , # Pycodestyle
@@ -147,7 +147,7 @@ select = [
147147 " PL" , # PyLint checks
148148 " RUF" , # Specific to Ruff checks
149149]
150- ignore = [
150+ lint. ignore = [
151151 " D105" , # Missing docstring in magic method
152152 " D107" , # Missing docstring in __init__
153153 " D212" , # Multi-line docstring summary should start at the first line
@@ -161,10 +161,10 @@ ignore = [
161161 " D106" , # Missing docstring in public nested class
162162]
163163exclude = [" .venv/" ]
164- mccabe = { max-complexity = 10 }
164+ lint. mccabe = { max-complexity = 10 }
165165line-length = 88
166166
167- [tool .ruff .per-file-ignores ]
167+ [tool .ruff .lint . per-file-ignores ]
168168"tests/*" = [
169169 " S101" , # Use of assert detected
170170 " S301" , # Use of pickle detected
@@ -174,12 +174,12 @@ line-length = 88
174174 " D101" , # Missing docstring in public class
175175]
176176
177- [tool .ruff .pydocstyle ]
177+ [tool .ruff .lint . pydocstyle ]
178178convention = " pep257"
179179ignore-decorators = [" typing.overload" ]
180180
181- [tool .ruff .pylint ]
181+ [tool .ruff .lint . pylint ]
182182allow-magic-value-types = [" int" , " str" , " float" ]
183183
184- [tool .ruff .flake8-bugbear ]
184+ [tool .ruff .lint . flake8-bugbear ]
185185extend-immutable-calls = [" taskiq_dependencies.Depends" , " taskiq.TaskiqDepends" ]
0 commit comments