mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 17:24:59 +00: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:
parent
48e9df2282
commit
4811bc91c2
1 changed files with 5 additions and 0 deletions
|
@ -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"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue