mirror of
https://github.com/NousResearch/atropos.git
synced 2026-04-19 12:57:58 +00:00
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:
parent
55cdb83cbf
commit
61fdc37f61
13 changed files with 21 additions and 11 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue