From 3e5be8a70f535210982da432c89807204c8502bd Mon Sep 17 00:00:00 2001 From: Mike Taves Date: Fri, 8 Aug 2025 13:23:26 +1200 Subject: [PATCH] Replace isort with ruff check "I" rule --- .pre-commit-config.yaml | 6 ------ pyproject.toml | 12 +++++++----- 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e12617a..6472fb4 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,12 +7,6 @@ repos: args: [ --fix ] # Run the formatter - id: ruff-format -- repo: https://github.com/pycqa/isort - rev: 6.0.1 - hooks: - - id: isort - name: isort (python) - args: ["--profile", "black"] - repo: https://github.com/pre-commit/pre-commit-hooks rev: v5.0.0 hooks: diff --git a/pyproject.toml b/pyproject.toml index 00a755f..0a6fc75 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -87,12 +87,14 @@ exclude = [ line-length = 88 indent-width = 4 -# Assume Python 3.9 -target-version = "py39" - [tool.ruff.lint] -# Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default. -select = ["E4", "E7", "E9", "F"] +select = [ + "E4", # pycodestyle: Import + "E7", # pycodestyle: Statement + "E9", # pycodestyle: Runtime + "F", # pyflakes + "I", # isort +] ignore = [] # Allow fix for all enabled rules (when `--fix`) is provided.