diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8da69e56e9..ebb3f6754c 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", "--exit-non-zero-on-fix"] + args: ["--fix", "--fixable=I001,F401", "--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 0162edf54f..1e499e4cca 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -13,6 +13,7 @@ line-length = 120 target-version = "py38" select = [ "I", # isort + "F401", # Unused imports ] [tool.ruff.isort]