Replace isort with ruff for import sorting

- Update pre-commit config to use ruff with --select=I for imports only
- Apply ruff import sorting to fix pre-commit issues
- Ruff and black work together without conflicts
This commit is contained in:
Dakota 2025-06-04 11:28:30 -05:00
parent 55cdb83cbf
commit 61fdc37f61
13 changed files with 21 additions and 11 deletions

View file

@ -12,11 +12,11 @@ repos:
hooks:
- id: black
- repo: https://github.com/pycqa/isort
rev: 6.0.1
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.11.12
hooks:
- id: isort
args: ["--profile", "black", "--filter-files"]
- id: ruff
args: ["--select=I", "--fix"] # Only run import-related rules
- repo: https://github.com/pycqa/flake8
rev: 7.2.0