Skip to content

Style

Style #109

Workflow file for this run

name: Style
on:
push:
branches:
- main
pull_request:
branches:
- main
release:
types:
- published
schedule:
# Run nightly to check that tests are working with latest dependencies
- cron: "0 0 * * *"
permissions:
contents: read
pull-requests: write
jobs:
style:
strategy:
matrix:
python-version: ["3.11", "3.13"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: ${{ matrix.python-version }}
- name: Install grid3d-maps
run: |
pip install -U pip
pip install ".[tests]"
- name: List all installed packages
run: pip freeze
- name: ruff check
if: ${{ always() }}
run: ruff check .
- name: ruff format
if: ${{ always() }}
run: ruff format . --check