Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
tank
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AURA
tank
Commits
5a15e665
Commit
5a15e665
authored
11 months ago
by
Martina Müller
Browse files
Options
Downloads
Patches
Plain Diff
Chore: add hook for go-fmt,
#63
parent
c79f330d
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.pre-commit-config.yaml
+4
-1
4 additions, 1 deletion
.pre-commit-config.yaml
Makefile
+5
-4
5 additions, 4 deletions
Makefile
with
9 additions
and
5 deletions
.pre-commit-config.yaml
+
4
−
1
View file @
5a15e665
...
...
@@ -5,4 +5,7 @@ repos:
-
id
:
codespell
args
:
[]
# Are there any others needed for tank?
\ No newline at end of file
-
repo
:
https://github.com/dnephin/pre-commit-golang
rev
:
v0.5.1
hooks
:
-
id
:
go-fmt
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Makefile
+
5
−
4
View file @
5a15e665
...
...
@@ -29,7 +29,7 @@ endif
SWAG
=
$(
GOPATH
)
/bin/swag
SWAG_ARGS
:=
-d
api/v1/,cmd/tank/
-g
api.go
EXECUT
E
ABLE
:=
tank
EXECUTABLE
:=
tank
all
:
build
.PHONY
:
vet format ui build clean distclean
...
...
@@ -37,6 +37,7 @@ all: build
init.dev
::
go get
-u
github.com/swaggo/swag/cmd/swag
go
install
github.com/swaggo/swag/cmd/swag@latest
curl -sSfL https
:
//github.com/pre-commit/pre-commit/releases/download/v3.7.0/pre-commit-3.7.0.pyz -o pre-commit.pyz && python3 pre-commit.pyz && rm -f pre-commit.pyz
vet
:
$(
GOCMD
)
vet ./...
...
...
@@ -57,10 +58,10 @@ api-docs:
# to allow building binary without generating api docs first, we put api/docs/docs.go under version control
# see #30
build
:
ui
$(
GOCMD
)
build
-o
$(
EXECUT
E
ABLE
)
./cmd/tank
$(
GOCMD
)
build
-o
$(
EXECUTABLE
)
./cmd/tank
dev
:
$(
GOCMD
)
build
-o
$(
EXECUT
E
ABLE
)
-tags
=
dev ./cmd/tank
$(
GOCMD
)
build
-o
$(
EXECUTABLE
)
-tags
=
dev ./cmd/tank
test-all
:
gitlab-runner
exec
docker test-all
...
...
@@ -69,7 +70,7 @@ coverage:
gitlab-runner
exec
docker test-all |
grep
'ok.*of statements'
clean
:
rm
-f
$(
EXECUT
E
ABLE
)
rm
-f
$(
EXECUTABLE
)
distclean
:
clean
rm
-f
ui/assets_vfsdata.go
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment