Replace pre-commit in the CI #2566
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: code-quality | |
on: | |
pull_request: | |
branches: | |
- "*" | |
push: | |
branches: | |
- main | |
jobs: | |
ubuntu: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build River | |
uses: ./.github/actions/install-env | |
with: | |
python-version: "3.13" | |
build-root: false | |
- name: MyPy type check | |
run: poetry run mypy | |
- name: Ruff code linting | |
run: poetry run ruff check --output-format=github river/ | |
- name: Ruff code formatting | |
run: poetry run ruff format --check river/ |