Download Makefile from shimen/API: direct link, hf CLI and curl.
- Browser
- Download file 503 Bytes
-
https://huggingface.co/spaces/shimen/API/resolve/main/Makefile
- Command line
-
hf download hf://spaces/shimen/API/Makefile
-
curl -L -o Makefile https://huggingface.co/spaces/shimen/API/resolve/main/Makefile
503 Bytes
| GOPATH=$(shell go env GOPATH) | |
| GOLANGCI_LINT=$(GOPATH)/bin/golangci-lint | |
| lint-install: | |
| go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest | |
| lint: | |
| $(GOLANGCI_LINT) run ./... | |
| lint-fix: | |
| $(GOLANGCI_LINT) run --fix ./... | |
| # Pre-commit hook | |
| lint-precommit: | |
| @echo "#!/bin/sh" > .git/hooks/pre-commit | |
| @echo '$(GOLANGCI_LINT) run --fast ./...' >> .git/hooks/pre-commit | |
| @chmod +x .git/hooks/pre-commit | |
| @echo "Pre-commit hook installed" | |