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
14 changes: 7 additions & 7 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
with:
go-version: stable

# this is way too slow to add to pre-commit
# this is way too slow to add to prek
- run: go mod tidy

- run: go install golang.org/x/tools/cmd/goimports@v0.36.0
Expand All @@ -51,7 +51,7 @@ jobs:
version: v2.14
install-mode: binary
# we're just using their official action to install;
# running should be consolidated into pre-commit
# running should be consolidated into prek
args: "--help"

- uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3
Expand All @@ -67,14 +67,14 @@ jobs:

- uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: ~/.cache/pre-commit
path: ~/.cache/prek
key: cache-epoch-1|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml', 'uv.lock') }}

- name: Install pre-commit
run: pre-commit install-hooks
- name: Install prek
run: .venv/bin/prek prepare-hooks

- name: Run pre-commit
run: pre-commit run --all-files
- name: Run prek
run: .venv/bin/prek run --all-files

test-vroom:
runs-on: ubuntu-latest
Expand Down
3 changes: 1 addition & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ repos:
types: [go]
pass_filenames: false

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
- repo: builtin
hooks:
- id: check-case-conflict
- id: check-executables-have-shebangs
Expand Down
4 changes: 2 additions & 2 deletions devenv/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def main(context: dict[str, str]) -> int:
(f"{reporoot}/.devenv/bin/uv", "sync", "--frozen", "--quiet", "--active"),
)

print("installing pre-commit hooks ...")
proc.run((f"{reporoot}/.venv/bin/pre-commit", "install", "--install-hooks"))
print("installing prek hooks ...")
proc.run((f"{reporoot}/.venv/bin/prek", "install", "--prepare-hooks", "-f"))

return 0
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ version = "0.0.0"
[dependency-groups]
dev = [
"devservices>=1.2.1",
"pre-commit>=4.2.0",
"prek>=0.5.10",
"sentry-devenv>=1.22.2",
]

Expand Down
107 changes: 12 additions & 95 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading