Add project toml and add uv to build #5
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
# Basic CI setup: Lint with ruff | |
name: Test | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: astral-sh/setup-uv@v3 | |
- name: Ruff lint | |
run: uv run ruff check . | |
- name: Ruff check import sorting | |
run: uv run ruff check --select I . | |
- name: Ruff format | |
run: uv run ruff format --diff . | |
# This isn't a general Python lint, this style is just used in this repository | |
- name: Prettier format | |
run: npx prettier --prose-wrap always --check "**/*.md" |