Skip to content

Commit

Permalink
add linting workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Hgherzog committed Oct 21, 2024
1 parent 09e08ee commit 8f1dd09
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 8f1dd09

Please sign in to comment.