Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ jobs:

# Pinned deliberately: an unpinned ruff picks up new rules on release and
# turns a green branch red without anything in this repo changing.
- run: pip install ruff==0.16.2 vulture==2.14
- run: pip install ruff==0.16.2 vulture==2.14 pre-commit==4.6.2

- run: ruff check .

- name: Dead code
run: tools/check-dead-code.sh
run: pre-commit run --all-files --show-diff-on-failure
11 changes: 11 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# The dead-code gate lives in offworldlabs/ops and is pinned here. Do not
# vendor it back into this repo. See 86cb4jfhz.
#
# The ruff-config hook is deliberately absent: this repo's shared ruff standard
# lives in ruff.toml, and check-ruff-config.py currently reads pyproject.toml
# only. Tracked as 86cb4jfzk; add the hook once that lands.
repos:
- repo: https://github.com/offworldlabs/ops
rev: hooks-v1.0
hooks:
- id: dead-code
50 changes: 0 additions & 50 deletions tools/check-dead-code.sh

This file was deleted.

Loading