Skip to content

Commit

Permalink
added linting on pr
Browse files Browse the repository at this point in the history
  • Loading branch information
haeussma committed Jan 19, 2025
1 parent a154261 commit 47e299c
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Lint

on: pull_request
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.x"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install poetry
poetry install --with dev
- name: Run Ruff
run: |
poetry run ruff check .
poetry run ruff format --check .
- name: Run mypy
run: |
poetry run mypy src/

0 comments on commit 47e299c

Please sign in to comment.