@@ -57,18 +57,51 @@ Changelog = "https://github.com/ome/ome-zarr-py/blob/master/CHANGELOG.md"
5757
5858[tool .ruff .lint ]
5959extend-select = [
60- " I" , # isort
61- # "D", # pydocstyle # FIXME
62- # "BLE", # flake8-blind-except # FIXME
63- " A" , # flake8-builtins
64- # "G", # flake8-logging-format # FIXME
60+ " S" , # flake8-bandit
61+ " BLE" , # flake8-blind-except
62+ " B" , # flake8-bugbear
63+ " A" , # flake8-builtins
64+ " C4" , # flake8-comprehensions
65+ " ISC" , # flake8-implicit-str-concat
66+ " LOG" , # flake8-logging
67+ " G" , # flake8-logging-format
68+ " PIE" , # flake8-pie
69+ " PYI" , # flake8-pyi
70+ " SIM" , # flake8-simplify
71+ " TID" , # flake8-tidy-imports
72+ " FLY" , # flynt
73+ " I" , # isort
74+ " PERF" , # Perflint
75+ # "D", # pydocstyle # FIXME
76+ " PGH" , # pygrep-hooks
77+ " PLE" , # Pylint Error
78+ " PLW" , # Pylint Warning
79+ " UP" , # pyupgrade
80+ " FURB" , # refurb
81+ " RUF" , # Ruff-specific rules
82+ ]
83+
84+ ignore = [
85+ " S101" , # assert
86+ " S311" , # suspicious-non-cryptographic-random-usage
87+ " B007" , # unused-loop-control-variable
88+ " B008" , # function-call-in-default-argument # FIXME
89+ " B011" , # assert-false
90+ " B024" , # abstract-base-class-without-abstract-method # FIXME
91+ " B028" , # no-explicit-stacklevel
92+ " B905" , # zip-without-explicit-strict
93+ " C408" , # unnecessary-collection-call
94+ " SIM108" , # if-else-block-instead-of-if-exp
95+ " PERF203" , # try-except-in-loop
96+ " UP038" , # non-pep604-isinstance
97+ " RUF005" , # collection-literal-concatenation
6598]
6699
67100[tool .ruff .lint .extend-per-file-ignores ]
68101"ome_zarr/csv.py" = [" A005" ]
69102"ome_zarr/io.py" = [" A005" ]
70103"ome_zarr/types.py" = [" A005" ]
71- "tests/*.py" = [" D" ]
104+ "tests/*.py" = [" SIM201 " , " D" ]
72105
73106[tool .setuptools ]
74107packages = [" ome_zarr" ]
0 commit comments