@@ -31,7 +31,7 @@ tests = [
3131]
3232dev = [
3333 " maturin" ,
34- " ruff==0.5.0 " ,
34+ " ruff==0.8.6 " ,
3535 " pre-commit>=3.7.1" ,
3636]
3737
@@ -88,10 +88,14 @@ select = [
8888 " RSE" , # https://docs.astral.sh/ruff/rules/#flake8-raise-rse
8989 " RET" , # https://docs.astral.sh/ruff/rules/#flake8-return-ret
9090 " SLF" , # https://docs.astral.sh/ruff/rules/#flake8-self-slf
91+ " SLOT" , # https://docs.astral.sh/ruff/rules/#flake8-slots-slot
9192 " SIM" , # https://docs.astral.sh/ruff/rules/#flake8-simplify-sim
9293 " ARG" , # https://docs.astral.sh/ruff/rules/#flake8-unused-arguments-arg
9394 " PTH" , # https://docs.astral.sh/ruff/rules/#flake8-use-pathlib-pth
9495 " PGH" , # https://docs.astral.sh/ruff/rules/#pygrep-hooks-pgh
96+ " PLC" , # https://docs.astral.sh/ruff/rules/#convention-c
97+ " PLE" , # https://docs.astral.sh/ruff/rules/#error-e_1
98+ " TRY" , # https://docs.astral.sh/ruff/rules/#tryceratops-try
9599 " PERF" , # https://docs.astral.sh/ruff/rules/#perflint-perf
96100 " FURB" , # https://docs.astral.sh/ruff/rules/#refurb-furb
97101 " RUF" , # https://docs.astral.sh/ruff/rules/#ruff-specific-rules-ruf
@@ -110,6 +114,9 @@ fixable = [
110114 " PT" ,
111115 " RSE" ,
112116 " SIM" ,
117+ " PLC" ,
118+ " PLE" ,
119+ " TRY" ,
113120 " PERF" ,
114121 " FURB" ,
115122 " RUF"
@@ -130,23 +137,39 @@ fixable = [
130137# E501 - line-too-long*
131138# W191 - tab-indentation*
132139# S321 - suspicious-ftp-lib-usage
140+ # PLC0206 - dict-index-missing-items
133141# *ignored for compatibility with formatter
134142ignore = [
135- " ANN003" , " ANN101 " , " ANN102 " ,
143+ " ANN003" ,
136144 " D203" , " D205" , " D206" , " D213" , " D300" , " D400" , " D415" ,
137145 " E111" , " E114" , " E117" , " E501" ,
138146 " W191" ,
139147 " S321" ,
148+ " PLC0206" ,
140149]
141150
142151[tool .ruff .lint .per-file-ignores ]
143152# ANN001 - missing-type-function-argument
144153# ANN2 - missing-return-type
145- # ANN102 - missing-type-cls
154+ # D100 - undocumented-public-module
155+ # D102 - undocumented-public-class
156+ # D103 - undocumented-public-function
146157# S101 - assert
147158# B011 - assert-false
148159# INP001 - implicit-namespace-package
149- "tests/*" = [" ANN001" , " ANN2" , " ANN102" , " S101" , " B011" , " INP001" ]
160+ "tests/*" = [
161+ " ANN001" ,
162+ " ANN2" ,
163+ " D100" ,
164+ " D102" ,
165+ " D103" ,
166+ " S101" ,
167+ " B011" ,
168+ " INP001"
169+ ]
170+
171+ [tool .ruff .lint .flake8-annotations ]
172+ mypy-init-return = true
150173
151174[tool .ruff .format ]
152175docstring-code-format = true
0 commit comments