From 6756980e81febfe71409ac29327f53420e84b6a2 Mon Sep 17 00:00:00 2001 From: Qi Zhao Date: Wed, 28 Aug 2024 13:45:19 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20Flake8=20cannot=20be=20co?= =?UTF-8?q?nfigured=20via=20pyproject.toml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/main.yml | 4 ++-- pyproject.toml | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6426069..cdbe35f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -36,9 +36,9 @@ jobs: - name: Lint with flake8 run: | # Run flake8 on Python files - flake8 pyencrypt --count --show-source --max-complexity=10 --statistics + pflake8 pyencrypt --count --show-source --max-complexity=10 --statistics # Run flake8 on test files - flake8 tests --count --show-source --max-complexity=10 --statistics --ignore F401,W503 + pflake8 tests --count --show-source --max-complexity=10 --statistics --ignore F401,W503 - name: Test with pytest run: | diff --git a/pyproject.toml b/pyproject.toml index 1461afb..f57f45f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -54,6 +54,7 @@ dev = [ "pytest", "ipython", "flake8", + "pyproject-flake8", ] [project.scripts]