Skip to content

Fix checks

Fix checks #3

Workflow file for this run

name: On pull request

Check failure on line 1 in .github/workflows/checks.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/checks.yaml

Invalid workflow file

(Line: 35, Col: 9): 'run' is already defined
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
run: |
ruff check detector test