From 5da1516d41cdf09089b0c93bdb4e27f63db1f374 Mon Sep 17 00:00:00 2001 From: "tiago.peres.sousa" Date: Mon, 27 Jan 2025 15:05:27 +0000 Subject: [PATCH] Another attempt to exclude dirs from flake8 --- .github/workflows/main.yaml | 2 +- pyproject.toml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index da038a2..4dfa7be 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -57,7 +57,7 @@ jobs: - name: install dependencies run: pip install .[test] - name: cognitive - run: flake8 . --max-cognitive-complexity=5 --exclude=tests/*,build/* + run: flake8 . --max-cognitive-complexity=5 isort: name: isort diff --git a/pyproject.toml b/pyproject.toml index 7ceaa54..f97fce2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -35,3 +35,6 @@ find = {} [tool.pydocstyle] convention = "google" + +[tool.flake8] +exclude = ["build/*"]