From 36d9e6133bd6eeca70844eb6e16ebc173d6bb484 Mon Sep 17 00:00:00 2001 From: p-goulart Date: Thu, 30 Nov 2023 14:25:21 +0100 Subject: [PATCH] Add flake8 workflow --- .github/workflows/flake8.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/flake8.yml diff --git a/.github/workflows/flake8.yml b/.github/workflows/flake8.yml new file mode 100644 index 0000000..4714730 --- /dev/null +++ b/.github/workflows/flake8.yml @@ -0,0 +1,26 @@ +name: Flake8 + +on: + push: + paths: + - "**/*.py" + - "pyproject.toml" + - "poetry.lock" + - ".github/workflows/flake8.yml" + +jobs: + lint: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.10", "3.11"] + steps: + - uses: actions/checkout@v3 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v3 + with: + python-version: ${{ matrix.python-version }} + - name: flake8 Lint + uses: py-actions/flake8@v2 + with: + exclude: "**/.archive/"