Compare commits

..

2 commits

Author SHA1 Message Date
ec5ed3cf1f
Update pre-commit hooks 2025-12-04 22:54:14 +02:00
924e8c6551
Include Go binaries in $PATH 2025-12-04 22:54:14 +02:00
2 changed files with 7 additions and 3 deletions

View file

@ -10,13 +10,13 @@ repos:
exclude: ^\.config/fcitx5/ exclude: ^\.config/fcitx5/
- id: trailing-whitespace - id: trailing-whitespace
- repo: https://github.com/astral-sh/ruff-pre-commit - repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.13.1 rev: v0.14.8
hooks: hooks:
- id: ruff - id: ruff
args: [ --fix ] args: [ --fix ]
- id: ruff-format - id: ruff-format
- repo: https://github.com/pre-commit/mirrors-mypy - repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.18.2 rev: v1.19.0
hooks: hooks:
- id: mypy - id: mypy
- repo: https://github.com/syntaqx/git-hooks - repo: https://github.com/syntaqx/git-hooks
@ -29,6 +29,6 @@ repos:
hooks: hooks:
- id: detect-secrets - id: detect-secrets
- repo: https://github.com/google/keep-sorted - repo: https://github.com/google/keep-sorted
rev: v0.6.0 rev: v0.7.1
hooks: hooks:
- id: keep-sorted - id: keep-sorted

View file

@ -30,6 +30,10 @@ if [ -d "$HOME/.local/bin" ] ; then
PATH="$HOME/.local/bin:$PATH" PATH="$HOME/.local/bin:$PATH"
fi fi
if [ -d "$(go env GOBIN)" ] ; then
PATH="$(go env GOBIN):$PATH"
fi
# Install the git-sync script # Install the git-sync script
if [ -d "$(systemd-path user-state-private)"/git-sync ] ; then if [ -d "$(systemd-path user-state-private)"/git-sync ] ; then
PATH="$(systemd-path user-state-private)/git-sync:$PATH" PATH="$(systemd-path user-state-private)/git-sync:$PATH"