Skip to content

Commit

Permalink
dependencies and pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
moritzzimmer committed Dec 16, 2020
1 parent d918c97 commit d254f97
Show file tree
Hide file tree
Showing 10 changed files with 33 additions and 10 deletions.
10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"

- package-ecosystem: "gomod"
schedule:
interval: "weekly"
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ jobs:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.CUSTOM_GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.CUSTOM_GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
bin/
build/
dist/
coverage.txt
coverage.txt
13 changes: 13 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
repos:
- repo: git://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0
hooks:
- id: check-merge-conflict
- id: trailing-whitespace
- id: end-of-file-fixer

- repo: git://github.com/dnephin/pre-commit-golang
rev: v0.3.5
hooks:
- id: go-fmt
- id: go-vet
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ install: $(PACKR2)
@echo "+ $@"
@GO111MODULE=on packr2 install
@packr2 clean

.PHONY: init-releaser
init-releaser: $(PACKR2) ## Initializes goreleaser for GitHub actions
@echo "+ $@"
Expand Down Expand Up @@ -114,4 +114,4 @@ clean: $(PACKR2) ## Cleanup any build binaries or packages

.PHONY: help
help: ## Display this help screen
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
2 changes: 1 addition & 1 deletion cmd/new.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ var newCmd = &cobra.Command{
Example: "func new github.com/you/app",
SilenceErrors: true,
Short: "Creates a new Lambda project",
Long: `Creates Terraform, CI and Go ressources for a new AWS Lambda project
Long: `Creates Terraform, CI and Go ressources for a new AWS Lambda project
in a new directory.
`,
Args: func(cmd *cobra.Command, args []string) error {
Expand Down
2 changes: 1 addition & 1 deletion generate/core/templates/.gitignore.tmpl
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
bin/
coverage.txt
coverage.txt
2 changes: 1 addition & 1 deletion generate/core/templates/Makefile.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -99,4 +99,4 @@ clean: ## Cleanup any build binaries or packages

.PHONY: help
help: ## Display this help screen
@grep -E '^[0-9a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
@grep -E '^[0-9a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
2 changes: 1 addition & 1 deletion generate/core/templates/terraform/main.tf.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ module "{{.opts.App.Name}}" {
event_source_arn = "arn:aws:dynamodb:eu-west-1:647379381847:table/some-table/stream/some-identifier"
}
{{end -}}

{{if eq .opts.App.Event "kinesis" -}}
event = {
type = "kinesis"
Expand Down
4 changes: 2 additions & 2 deletions tools.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
package tools

import (
_ "github.com/gobuffalo/packr/v2/packr2"
_ "golang.org/x/lint/golint"
_ "honnef.co/go/tools/cmd/staticcheck"
_ "github.com/gobuffalo/packr/v2/packr2"
)
)

0 comments on commit d254f97

Please sign in to comment.