naught ruff #1870
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: 🕶️ Style | |
on: | |
push: | |
branches: | |
- "**" | |
pull_request: | |
branches: | |
- main | |
jobs: | |
style-checks: | |
name: Run style checks | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.12 | |
- uses: actions/checkout@v4 | |
- run: python3 -m pip install -e .[style,docs] | |
- run: | | |
python3 -m ruff check . | |
python3 -m ruff format --check . | |
name: Run ruff checks | |
- run: python3 -m mypy . | |
name: Run mypy checks | |
- run: | | |
cd docs | |
make html SPHINXOPTS="-W" | |
name: Test docs build |