[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 2/5] python: add excluded dirs to flake8 config
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: [PATCH 2/5] python: add excluded dirs to flake8 config |
Date: |
Wed, 28 Oct 2020 09:50:51 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.3.1 |
On 10/27/20 11:38 PM, John Snow wrote:
> Following patches make obvious that we ought to ignore certain
> directories to avoid wildly erroneous flake8 output.
>
> Signed-off-by: John Snow <jsnow@redhat.com>
> ---
> python/setup.cfg | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/python/setup.cfg b/python/setup.cfg
> index cb696291ba38..d0ad683b5148 100644
> --- a/python/setup.cfg
> +++ b/python/setup.cfg
> @@ -30,6 +30,8 @@ devel =
>
> [flake8]
> extend-ignore = E722 # Prefer pylint's bare-except checks to flake8's
> +exclude = __pycache__,
> + .venv,
Can we make flake8 aware the files are in a git repository instead?
Anyway,
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
>
> [mypy]
> strict = True
>
[PATCH 2/5] python: add excluded dirs to flake8 config, John Snow, 2020/10/27
- Re: [PATCH 2/5] python: add excluded dirs to flake8 config,
Philippe Mathieu-Daudé <=
[PATCH 4/5] python: add .gitignore, John Snow, 2020/10/27
Re: [PATCH 4/5] python: add .gitignore, John Snow, 2020/10/28
Re: [PATCH 4/5] python: add .gitignore, John Snow, 2020/10/28
[PATCH 5/5] gitlab: add python linters to CI, John Snow, 2020/10/27