Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Based on https://docs.astral.sh/uv/guides/integration/github/#multiple-python-versions
name: Format

# trigger on PRs and main branches
on:
pull_request:
push:
branches:
- master
- develop

jobs:
build:
runs-on: ubuntu-24.04

steps:
- uses: actions/checkout@v5

- name: Install uv
uses: astral-sh/setup-uv@v6
with:
version: "0.9.5"

- name: Install dependencies
run: uv sync --dev

- name: Check format
run: |
uv run ruff format --check
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Based on https://docs.astral.sh/uv/guides/integration/github/#multiple-python-versions
name: Code Style
name: Lint

# trigger on PRs and main branches
on:
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,9 @@ make html
```bash
# Lint
uv run ruff check

# Format code
uv run ruff format
```

## Contact
Expand Down
Loading