@@ -54,7 +54,7 @@ build-backend = "poetry.core.masonry.api"
5454[tool .ruff ]
5555# List of enabled rulsets.
5656# See https://docs.astral.sh/ruff/rules/ for more information.
57- select = [
57+ lint. select = [
5858 " E" , # Error
5959 " F" , # Pyflakes
6060 " W" , # Pycodestyle
@@ -81,42 +81,37 @@ select = [
8181 " PL" , # PyLint checks
8282 " RUF" , # Specific to Ruff checks
8383]
84- ignore = [
84+ lint. ignore = [
8585 " D105" , # Missing docstring in magic method
8686 " D107" , # Missing docstring in __init__
8787 " D212" , # Multi-line docstring summary should start at the first line
8888 " D401" , # First line should be in imperative mood
8989 " D104" , # Missing docstring in public package
9090 " D100" , # Missing docstring in public module
91- " ANN102" , # Missing type annotation for self in method
92- " ANN101" , # Missing type annotation for argument
9391 " ANN401" , # typing.Any are disallowed in `**kwargs
9492 " PLR0913" , # Too many arguments for function call
9593 " D106" , # Missing docstring in public nested class
9694]
9795exclude = [" .venv/" ]
98- mccabe = { max-complexity = 10 }
96+ lint. mccabe = { max-complexity = 10 }
9997line-length = 88
10098
101- [tool .ruff .per-file-ignores ]
99+ [tool .ruff .lint . per-file-ignores ]
102100"tests/*" = [
103- " S101" , # Use of assert detected
104- " S301" , # Use of pickle detected
105- " D103" , # Missing docstring in public function
101+ " S101" , # Use of assert detected
102+ " S301" , # Use of pickle detected
103+ " D103" , # Missing docstring in public function
106104 " SLF001" , # Private member accessed
107- " S311" , # Standard pseudo-random generators are not suitable for security/cryptographic purposes
108- " D101" , # Missing docstring in public class
105+ " S311" , # Standard pseudo-random generators are not suitable for security/cryptographic purposes
106+ " D101" , # Missing docstring in public class
109107]
110108
111- [tool .ruff .pydocstyle ]
109+ [tool .ruff .lint . pydocstyle ]
112110convention = " pep257"
113111ignore-decorators = [" typing.overload" ]
114112
115- [tool .ruff .pylint ]
116- allow-magic-value-types = [" int" , " str" , " float" , " bytes " ]
113+ [tool .ruff .lint . pylint ]
114+ allow-magic-value-types = [" int" , " str" , " float" ]
117115
118- [tool .ruff .flake8-bugbear ]
119- extend-immutable-calls = [
120- " taskiq_dependencies.Depends" ,
121- " taskiq.TaskiqDepends" ,
122- ]
116+ [tool .ruff .lint .flake8-bugbear ]
117+ extend-immutable-calls = [" taskiq_dependencies.Depends" , " taskiq.TaskiqDepends" ]
0 commit comments