mirror of
https://github.com/Aider-AI/aider
synced 2026-04-25 17:15:07 +02:00
# 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.
17 lines
385 B
YAML
17 lines
385 B
YAML
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"]
|