From 09e5ce9152d979ad9b53f4f798b98d4ac186d145 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 8 Aug 2022 20:19:40 +0200 Subject: [pre-commit.ci] pre-commit autoupdate (#1726) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [pre-commit.ci] pre-commit autoupdate updates: - [github.com/asottile/pyupgrade: v2.37.2 → v2.37.3](https://github.com/asottile/pyupgrade/compare/v2.37.2...v2.37.3) - https://github.com/Pierre-Sassoulas/black-disable-checker/: v1.1.0 → v1.1.1 - [github.com/PyCQA/flake8: 4.0.1 → 5.0.3](https://github.com/PyCQA/flake8/compare/4.0.1...5.0.3) * Disable line too long and line break before binary operator As there's a lot of the format and the latter is incompatible with black. * [flake8] Deactivate the check for return and yield together It's opinionated see https://github.com/PyCQA/flake8-bugbear/issues/2 and every current warning is a false positive. * Explain falke8 disables Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Pierre Sassoulas Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> --- setup.cfg | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'setup.cfg') diff --git a/setup.cfg b/setup.cfg index eb7d6f38..f5dca363 100644 --- a/setup.cfg +++ b/setup.cfg @@ -25,7 +25,15 @@ include_trailing_comma = True skip_glob = tests/testdata [flake8] -extend-ignore = E203,E266,E501,C901,F401 +extend-ignore = + C901, # Function complexity checker + F401, # Unused imports + E203, # Incompatible with black see https://github.com/psf/black/issues/315 + W503, # Incompatible with black + E501, # Line too long + B950, # Line too long + B901 # Combine yield and return statements in one function +max-line-length=88 max-complexity = 20 select = B,C,E,F,W,T4,B9 # Required for flake8-typing-imports (v1.12.0) -- cgit v1.2.1