@@ -54,7 +54,7 @@ build-backend = "poetry.core.masonry.api"
54
54
[tool .ruff ]
55
55
# List of enabled rulsets.
56
56
# See https://docs.astral.sh/ruff/rules/ for more information.
57
- select = [
57
+ lint. select = [
58
58
" E" , # Error
59
59
" F" , # Pyflakes
60
60
" W" , # Pycodestyle
@@ -81,42 +81,37 @@ select = [
81
81
" PL" , # PyLint checks
82
82
" RUF" , # Specific to Ruff checks
83
83
]
84
- ignore = [
84
+ lint. ignore = [
85
85
" D105" , # Missing docstring in magic method
86
86
" D107" , # Missing docstring in __init__
87
87
" D212" , # Multi-line docstring summary should start at the first line
88
88
" D401" , # First line should be in imperative mood
89
89
" D104" , # Missing docstring in public package
90
90
" D100" , # Missing docstring in public module
91
- " ANN102" , # Missing type annotation for self in method
92
- " ANN101" , # Missing type annotation for argument
93
91
" ANN401" , # typing.Any are disallowed in `**kwargs
94
92
" PLR0913" , # Too many arguments for function call
95
93
" D106" , # Missing docstring in public nested class
96
94
]
97
95
exclude = [" .venv/" ]
98
- mccabe = { max-complexity = 10 }
96
+ lint. mccabe = { max-complexity = 10 }
99
97
line-length = 88
100
98
101
- [tool .ruff .per-file-ignores ]
99
+ [tool .ruff .lint . per-file-ignores ]
102
100
"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
106
104
" 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
109
107
]
110
108
111
- [tool .ruff .pydocstyle ]
109
+ [tool .ruff .lint . pydocstyle ]
112
110
convention = " pep257"
113
111
ignore-decorators = [" typing.overload" ]
114
112
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" ]
117
115
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