From 8f1dd092428e747323a7debcdd864a766ab3068c Mon Sep 17 00:00:00 2001 From: hgherzog Date: Mon, 21 Oct 2024 11:33:06 -0700 Subject: [PATCH] add linting workflow --- .github/workflows/lint.yaml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index e69de29b..34f76e94 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -0,0 +1,33 @@ +name: Lint (type checking, security, code quality, ruff) + +on: + push: + branches: + - "henryh/add-linting-workflow" + pull_request: + branches: + - "master" + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + linting: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + with: + lfs: false + + - name: Set up Python 3.10 + uses: actions/setup-python@v4 + with: + python-version: 3.10.10 + pip-version: 24 + + - name: Linting + run: | + pip install pre-commit interrogate + pre-commit run --all-files