From 05f183d7d4772d1f2a3d5d9e71fee60d8af95110 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Thu, 14 Sep 2023 18:49:58 +0200 Subject: [PATCH] exclude export_tests.py from linting for Python<3.8 --- .github/workflows/tests.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 36ab9534..510045a0 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -53,7 +53,14 @@ jobs: - name: Lint with flake8 run: | - flake8 . + case "${{ matrix.python-version }}" in + 3.4|3.5|3.6|3.7) + flake8 --extend-exclude scripts/export_tests.py . + ;; + *) + flake8 . + ;; + esac - name: Run tests run: |