Skip to content

Commit

Permalink
pre-commit: update, enforce go mod tidy, prevent literal HTTP methods
Browse files Browse the repository at this point in the history
Signed-off-by: Sumner Evans <[email protected]>
  • Loading branch information
sumnerevans committed Jul 10, 2024
1 parent e586523 commit 6e132ca
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
if [[ -f .envrc.user ]]; then
source .envrc.user
fi
watch_file .envrc.user

if ! has nix_direnv_version || ! nix_direnv_version 3.0.0; then
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/3.0.0/direnvrc" "sha256-21TMnI2xWX7HkSTjFFri2UaohXVj854mgvWapWrxRXg="
fi
Expand Down
7 changes: 4 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/config.yaml
/.direnv
/passwordfile
/.envrc.user
/config.yaml
/meetbot
/meetbot.db*
/passwordfile
/result
/meetbot
6 changes: 4 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v4.6.0
hooks:
- id: trailing-whitespace
exclude_types: [markdown]
Expand All @@ -24,9 +24,11 @@ repos:
args:
- "-tags"
- "goolm"
- id: go-mod-tidy

- repo: https://github.com/beeper/pre-commit-go
rev: v0.3.0
rev: v0.3.1
hooks:
- id: zerolog-ban-msgf
- id: zerolog-use-stringer
- id: prevent-literal-http-methods

0 comments on commit 6e132ca

Please sign in to comment.