Compare commits

..

4 commits

Author SHA1 Message Date
3e7ca94035
Revert "[#7] mclock: Add tag stat"
This reverts commit 25102d1e1a.

Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
2025-03-10 16:58:38 +03:00
d752a1c95e
[#6] pre-commit: Add hook for running gofumpt
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
25102d1e1a [#7] mclock: Add tag stat
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
2025-02-27 07:29:15 +00:00
2 changed files with 7 additions and 6 deletions

View file

@ -37,3 +37,9 @@ repos:
pass_filenames: false
types: [go]
language: system
- id: gofumpt
name: gofumpt check
entry: make fumpt
pass_filenames: false
types: [go]
language: system

View file

@ -24,12 +24,7 @@ GOFUMPT_DIR ?= $(abspath $(BIN))/gofumpt
GOFUMPT_VERSION_DIR ?= $(GOFUMPT_DIR)/$(GOFUMPT_VERSION)
# Run all code formatters
fmts: fmt imports
# Reformat code
fmt:
@echo "⇒ Processing gofmt check"
@gofumpt -s -w .
fmts: fumpt imports
# Reformat imports
imports: