From 1d3d3b13ed320fc88b11f8bf605a05f8091c1373 Mon Sep 17 00:00:00 2001 From: simon Date: Sat, 26 Mar 2022 18:36:10 +0700 Subject: [PATCH] reduce max-complexity to 10 --- .github/workflows/lint_python.yml | 2 +- deploy.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lint_python.yml b/.github/workflows/lint_python.yml index 8e0dc7e..09bd1cf 100644 --- a/.github/workflows/lint_python.yml +++ b/.github/workflows/lint_python.yml @@ -11,7 +11,7 @@ jobs: flake8-comprehensions isort - run: black --check --diff --line-length 79 . - run: codespell - - run: flake8 . --count --max-complexity=12 --max-line-length=79 + - run: flake8 . --count --max-complexity=10 --max-line-length=79 --show-source --statistics - run: isort --check-only --line-length 79 --profile black . # - run: pip install -r tubearchivist/requirements.txt diff --git a/deploy.sh b/deploy.sh index 26dd350..f280d6a 100755 --- a/deploy.sh +++ b/deploy.sh @@ -91,7 +91,7 @@ function validate { echo "running codespell" codespell --skip="./.git" "$check_path" echo "running flake8" - flake8 "$check_path" --count --max-complexity=12 --max-line-length=79 \ + flake8 "$check_path" --count --max-complexity=10 --max-line-length=79 \ --show-source --statistics echo "running isort" isort --check-only --diff --profile black -l 79 "$check_path"