From 43b8b859e0479b1817b9088a7a76e6d4d8746ee7 Mon Sep 17 00:00:00 2001 From: Marti Raudsepp Date: Sat, 20 May 2023 22:21:06 +0300 Subject: [PATCH] CI: Remove unused imports using Ruff --- .pre-commit-config.yaml | 2 +- pyproject.toml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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]