pre-commit: Add hook for running gofumpt #10

Merged
fyrchik merged 2 commits from a-savchuk/frostfs-qos:run-fumpt into master 2025-03-04 11:13:53 +00:00

2 commits

Author SHA1 Message Date
d752a1c95e
[#6] pre-commit: Add hook for running gofumpt
All checks were successful
DCO action / DCO (pull_request) Successful in 29s
Vulncheck / Vulncheck (pull_request) Successful in 37s
Tests and linters / Run gofumpt (pull_request) Successful in 52s
Tests and linters / Tests with -race (pull_request) Successful in 1m9s
Tests and linters / Staticcheck (pull_request) Successful in 1m10s
Tests and linters / Tests (pull_request) Successful in 1m20s
Tests and linters / Lint (pull_request) Successful in 1m25s
Tests and linters / gopls check (pull_request) Successful in 1m22s
Pre-commit hooks / Pre-commit (pull_request) Successful in 1m28s
Vulncheck / Vulncheck (push) Successful in 36s
Tests and linters / Run gofumpt (push) Successful in 55s
Tests and linters / Lint (push) Successful in 1m13s
Tests and linters / gopls check (push) Successful in 1m12s
Pre-commit hooks / Pre-commit (push) Successful in 1m23s
Tests and linters / Staticcheck (push) Successful in 1m20s
Tests and linters / Tests (push) Successful in 1m23s
Tests and linters / Tests with -race (push) Successful in 1m31s
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2025-03-04 13:01:33 +03:00
deaae4d37a
[#6] Makefile: Remove fmt rule, use fumpt rule instead
There were several problems:
- `fmt` was a duplicate of `fumpt`
- `fmt` used globally installed `gofumpt`

Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
2025-03-04 13:01:25 +03:00