From 3c26f9026908d70c1acde1cde57d349c0624e304 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Wed, 17 May 2023 17:55:40 -0700 Subject: [PATCH] aider: Added --show-source argument to flake8 hook in .pre-commit-config.yaml. # 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 ``` --- .pre-commit-config.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ef18d33d5..2a4b1815d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -8,3 +8,4 @@ repos: rev: 6.0.0 hooks: - id: flake8 + args: ["--show-source"]