Add pre-commit configuration (with codespell etc) to ensure no typos and more consistent formatting etc #70
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: Static code check | |
on: [push, pull_request] | |
jobs: | |
ruff: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
# run on a "fresh" python | |
python-version: 3.12 | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install hatch | |
run: python -m pip install hatch | |
- name: Check code | |
run: hatch fmt --check |