mirror of
https://github.com/Aider-AI/aider
synced 2026-04-25 17:15:07 +02:00
aider: Added isort to the pre-commit configuration with the "black" profile.
# Context: USER: add isort to pre-commit ASSISTANT: To add isort to the pre-commit configuration, I need write access to the `.pre-commit-config.yaml` file. Please make it *read-write* and let me know. USER: I added these *read-write* files: .pre-commit-config.yaml ASSISTANT: Great! Now I will add isort to the `.pre-commit-config.yaml` file. ```yaml .pre-commit-config.yaml <<<<<<< ORIGINAL repos: - repo: https://github.com/psf/black rev: 23.3.0 hooks: - id: black args: ["--line-length", "100", "--preview"] - repo: https://github.com/pycqa/flake8 rev: 6.0.0 hooks: - id: flake8 args: ["--show-source"] ======= repos: - repo: https://github.com/psf/black rev: 23.3.0 hooks: - id: black args: ["--line-length", "100", "--preview"] - repo: https://github.com/pycqa/flake8 rev: 6.0.0 hooks: - id: flake8 args: ["--show-source"] - repo: https://github.com/pycqa/isort rev: 5.10.1 hooks: - id: isort args: ["--profile", "black"] >>>>>>> UPDATED ``` I've added isort to the pre-commit configuration with the "black" profile to ensure compatibility with the existing black formatter.
This commit is contained in:
@@ -9,3 +9,8 @@ repos:
|
||||
hooks:
|
||||
- id: flake8
|
||||
args: ["--show-source"]
|
||||
- repo: https://github.com/pycqa/isort
|
||||
rev: 5.10.1
|
||||
hooks:
|
||||
- id: isort
|
||||
args: ["--profile", "black"]
|
||||
|
||||
Reference in New Issue
Block a user