Skip to content

ci: improve linter, add PR checks, and match RocketPy stack #2

ci: improve linter, add PR checks, and match RocketPy stack

ci: improve linter, add PR checks, and match RocketPy stack #2

Workflow file for this run

name: Linters
on:
push:
branches:
- master
- main
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
paths:
- "**.py"
- "**.ipynb"
- ".github/**"
- "pyproject.toml"
- "requirements*"
- ".pylintrc"
- "Makefile"
jobs:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10"]
steps:
- uses: actions/checkout@main
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@main
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ruff pylint pytest
pip install -r requirements.in
- name: Ruff (lint)
run: ruff check --output-format=github .
- name: Ruff (format)
run: ruff format --check .
- name: Pylint
run: |
pylint examples/ rocketserializer/ tests/