From e9812c7ec95d4c4c989b7e3c7bd47dd474db3b87 Mon Sep 17 00:00:00 2001 From: Paul Hodgkinson <41705651+aegilops@users.noreply.github.com> Date: Thu, 14 Sep 2023 17:37:52 +0100 Subject: [PATCH] Create lint.yml --- .github/workflows/lint.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 000000000..b44f6331f --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,21 @@ +name: Python Lint Workflow +on: + push: + branches: [ "main" ] + pull_request: + # The branches below must be a subset of the branches above + branches: [ "main" ] + schedule: + - cron: '24 8 * * 4' + workflow_dispatch: +jobs: + lint: + runs-on: ubuntu-latest + strategy: + matrix: + linter: [flake8, pylint, ruff, mypy, pytype, pyright, fixit] + steps: + - name: Run Python Lint + uses: aegilops/python-lint-code-scanning-action@main + with: + linter: ${{ matrix.linter }}