From fb7a6e09c080f7e9fc9488aaf615d858320821fb Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Mon, 7 Nov 2022 12:10:16 +0100 Subject: [PATCH] GitHub Action to lint Python code Prove the Python syntax errors as discussed in * #91 * #342 * #624 * #665 * #666 * #1176 * #1484 * #1807 * #1972 * #2088 * #2279 * #2287 * #2446 * #2493 * #2522 And many more... --- .github/workflows/lint_python.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .github/workflows/lint_python.yml diff --git a/.github/workflows/lint_python.yml b/.github/workflows/lint_python.yml new file mode 100644 index 0000000000..88d65a871e --- /dev/null +++ b/.github/workflows/lint_python.yml @@ -0,0 +1,13 @@ +name: lint_python +on: [pull_request, push] +jobs: + lint_python: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 + with: + python-version: 3.11 + - run: pip install --upgrade pip wheel + - run: pip install flake8 + - run: flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics