mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 18:25:00 +00:00

# Context: USER: can we make flake8 output the actual lines that have each error? ASSISTANT: Yes, we can modify the `.pre-commit-config.yaml` file to include the `--show-source` argument for flake8. This will show the source code lines that have errors. Here's the change: ```yaml .pre-commit-config.yaml <<<<<<< ORIGINAL - repo: https://github.com/pycqa/flake8 rev: 6.0.0 hooks: - id: flake8 ======= - repo: https://github.com/pycqa/flake8 rev: 6.0.0 hooks: - id: flake8 args: ["--show-source"] >>>>>>> UPDATED ```
11 lines
262 B
YAML
11 lines
262 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"]
|