From 31a9581b7fe5bc696d324e3e30758a6b6261aed9 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Fri, 9 Dec 2022 00:03:05 -0800 Subject: [PATCH 1/2] Add flake8 `--ignore=B905,N818,W503` --- .pre-commit-config.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4e80fbad15..a8f0c6619f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -112,6 +112,7 @@ repos: hooks: - id: flake8 exclude: ^(docs/.*|tools/.*)$ + args: ["--ignore=B905,N818,W503"] additional_dependencies: *flake8_dependencies # PyLint has native support - not always usable, but works for us From f2af0165a4f81ab467c9372de9ae4f84692ce2a8 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Fri, 9 Dec 2022 07:33:18 -0800 Subject: [PATCH 2/2] Add B905 to `extend-ignore` in setup.cfg (thanks @Skylion007), leave .pre-commit-config.yaml as-is on master. --- .pre-commit-config.yaml | 1 - setup.cfg | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a8f0c6619f..4e80fbad15 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -112,7 +112,6 @@ repos: hooks: - id: flake8 exclude: ^(docs/.*|tools/.*)$ - args: ["--ignore=B905,N818,W503"] additional_dependencies: *flake8_dependencies # PyLint has native support - not always usable, but works for us diff --git a/setup.cfg b/setup.cfg index 9af50ea483..16479ab000 100644 --- a/setup.cfg +++ b/setup.cfg @@ -46,5 +46,5 @@ zip_safe = False max-line-length = 120 show_source = True exclude = .git, __pycache__, build, dist, docs, tools, venv -extend-ignore = E203, E722, B903, B950 +extend-ignore = E203, E722, B903, B905, B950 extend-select = B9