name: Ruff Formatting & Linting on: push: branches: [ main ] paths-ignore: - "README.md" - ".github" - "poetry.lock" - "scripts/settings" pull_request: branches: [ main ] paths-ignore: - "README.md" - ".github" - "poetry.lock" - "scripts/settings" jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v6 - name: Install Python uses: actions/setup-python@v6 with: python-version: "3.12" - name: Install dependencies run: | python -m pip install --upgrade pip pip install ruff - name: Run Ruff run: ruff check --output-format=github . && ruff format --check