Skip to content

Commit

Permalink
ci(pre-commit): update hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
DeadNews committed Apr 23, 2023
1 parent 9afde0d commit b0f895d
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 28 deletions.
26 changes: 13 additions & 13 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
Expand All @@ -12,22 +11,23 @@ repos:
- id: end-of-file-fixer
- id: trailing-whitespace

# - repo: https://github.com/golangci/golangci-lint
# rev: v1.50.1
# hooks:
# - id: golangci-lint

- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.22.0
hooks:
- id: check-dependabot
- id: check-github-workflows

- repo: https://github.com/executablebooks/mdformat
rev: 0.7.16
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.0-alpha.6
hooks:
- id: prettier

- repo: https://github.com/gitleaks/gitleaks
rev: v8.16.3
hooks:
- id: gitleaks

- repo: https://github.com/golangci/golangci-lint
rev: v1.52.2
hooks:
- id: mdformat
additional_dependencies:
- mdformat-toc
- mdformat-gfm
- mdformat-black
- id: golangci-lint
5 changes: 2 additions & 3 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"recommendations": [
"golang.go",
]
// List of extensions which should be recommended for users of this workspace.
"recommendations": ["golang.go"]
}
23 changes: 11 additions & 12 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
{
// Go //
"[go]": {
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.organizeImports": true
},
},
"go.useLanguageServer": true,
"go.lintTool": "golangci-lint",
"gopls": {
"formatting.gofumpt": true,
},
"[go]": {
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.organizeImports": true
}
},
"go.useLanguageServer": true,
"go.lintTool": "golangci-lint",
"gopls": {
"formatting.gofumpt": true
}
}

0 comments on commit b0f895d

Please sign in to comment.