From e4a78790bde1c1e01053de614e46185e505a50b1 Mon Sep 17 00:00:00 2001 From: Daniel Date: Wed, 27 Dec 2023 15:53:40 +0800 Subject: [PATCH] deeper, less complex lint --- bin/lint.sh | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/bin/lint.sh b/bin/lint.sh index 4d33c044d..e5c72bfb6 100755 --- a/bin/lint.sh +++ b/bin/lint.sh @@ -7,19 +7,21 @@ set -ex flake8 --version # Quick syntax errors -flake8 \ - cu_cat \ - --count \ - --select=E9,F63,F7,F82 \ - --ignore=F821,E999 \ - --show-source \ - --statistics +# flake8 \ +# cu_cat \ +# --count \ +# --select=E9,F63,F7,F82 \ +# --ignore=F821,E999 \ +# --show-source \ +# --statistics # Deeper check flake8 \ cu_cat \ --count \ + --select=E9,F63,F7,F82 \ --ignore=C901,E121,E122,E123,E124,E125,E128,E131,E144,E201,E202,E203,E231,E251,E265,E301,E302,E303,E401,E501,E722,F401,W291,W293,F821,E999 \ - --max-complexity=10 \ + --max-complexity=2 \ --max-line-length=127 \ + --show-source \ --statistics