refactor: Fix type annotation errors and remove unused code #603
Workflow file for this run
This file contains hidden or 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: test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v5 | |
- uses: astral-sh/setup-uv@v5 | |
with: | |
enable-cache: true | |
- run: uvx hatch test -acp | |
if: ${{ always() }} | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v5 | |
- uses: actions/setup-python@v5 | |
- uses: astral-sh/setup-uv@v5 | |
with: | |
enable-cache: true | |
- name: check formatting | |
run: uvx hatch fmt --check -f | |
- name: check linting | |
run: uvx hatch fmt --check -l --output-format=github | |
- name: check uv.lock is up-to-date | |
run: uv lock --check | |
- name: check requirements.txt is up-to-date | |
run: | | |
uv export >requirements.txt | |
git diff --exit-code requirements.txt |