Skip to content

Introduce ruff

Introduce ruff #45

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
name: Build app
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Set up PDM
uses: pdm-project/[email protected]
- name: Install dependencies
run: |
pdm sync
- name: Run checks with ruff
run: |
pdm run ruff check
pdm run ruff format --check
- name: Check typing
run: |
pdm run mypy maldump
- name: Run simple tests
run: |
pdm run python -m unittest
pdm run python -m maldump ./test/root