diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ebb3f6754c..8f30ee8421 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -21,7 +21,7 @@ repos: rev: v0.0.269 hooks: - id: ruff - args: ["--fix", "--fixable=I001,F401", "--exit-non-zero-on-fix"] + args: ["--fix", "--exit-non-zero-on-fix"] - repo: https://github.com/psf/black rev: 23.3.0 hooks: diff --git a/pyproject.toml b/pyproject.toml index 1e499e4cca..4d33b50fae 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,6 +15,10 @@ select = [ "I", # isort "F401", # Unused imports ] +fixable = [ + "I001", + "F401", +] [tool.ruff.isort] split-on-trailing-comma = false