Skip to content

Add extensible Slop Cop Dev Note checks #7

Add extensible Slop Cop Dev Note checks

Add extensible Slop Cop Dev Note checks #7

name: Slop Cop candidate
"on":
pull_request:
types: [opened, reopened, synchronize, ready_for_review]
permissions:
contents: read
concurrency:
group: slop-cop-candidate-${{ github.event.pull_request.number }}
cancel-in-progress: true
jobs:
validate:
name: Slop Cop / Candidate Tool
runs-on: ubuntu-latest
steps:
- name: Check out candidate revision
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
fetch-depth: 0
- name: Set up uv and Python
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
with:
version: "0.11.31"
python-version: "3.12"
- name: Test candidate implementation
working-directory: dev-tools/slop-cop
run: |
uv sync --frozen
uv run pytest
uv run ruff check .
uv run ruff format --check .
uv run mypy src tests
uv run slop-cop validate-rules
uv run slop-cop benchmark --repository-root ../..
uv run slop-cop check \
--config slop-cop.toml \
--repository-root ../.. \
../../docs/dev-notes/posts/*.md