diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 59d9a16b..380bc3aa 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,7 +1,7 @@ --- repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.3.0 + rev: v5.0.0 hooks: - id: check-ast - id: check-json @@ -20,41 +20,11 @@ repos: - id: requirements-txt-fixer - - repo: https://github.com/psf/black - rev: 22.10.0 - hooks: - - id: black - - - - repo: https://github.com/PyCQA/flake8 - rev: 5.0.4 - hooks: - - id: flake8 - - - - repo: https://github.com/PyCQA/pylint - rev: v2.15.4 - hooks: - - id: pylint - - - - repo: https://github.com/pre-commit/pygrep-hooks - rev: v1.9.0 - hooks: - # A quick check for the `eval()` built-in function - - id: python-no-eval - # A quick check for the deprecated `.warn()` method of python loggers - - id: python-no-log-warn - - repo: https://github.com/Bahjat/pre-commit-golang - rev: v1.0.2 + rev: v1.0.5 hooks: - id: go-fmt-import - #- id: go-vet - - id: go-lint - - id: gofumpt # requires github.com/mvdan/gofumpt - #- id: go-static-check # install https://staticcheck.io/docs/ - #- id: golangci-lint # requires github.com/golangci/golangci-lint - # args: [--config=.github/linters/.golangci.yml] # optional - - id: go-ruleguard # requires https://github.com/quasilyte/go-ruleguard - args: [rules/rules.go] # required + - id: go-static-check # install https://staticcheck.io/docs/ + - id: golangci-lint # requires github.com/golangci/golangci-lint + args: [--config=.golangci.yml] # optional + - id: go-unit-tests