Cleanup #11
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: On pull request | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
paths-ignore: | |
- "docs/**" | |
- ".github/**" | |
env: | |
DEFAULT_PYTHON: 3.11 | |
jobs: | |
python_checks: | |
runs-on: ubuntu-latest | |
name: Python Checks | |
steps: | |
- name: Check out the repository | |
uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
- name: Set up Python ${{ env.DEFAULT_PYTHON }} | |
uses: actions/[email protected] | |
with: | |
python-version: ${{ env.DEFAULT_PYTHON }} | |
- name: Install requirements | |
run: | | |
python3 -m pip install -U pip | |
python3 -m pip install ruff | |
- name: Check formatting | |
run: | | |
ruff format --check --diff detector test | |
- name: Check lint | |
run: | | |
ruff check detector test |