Skip to content

Commit

Permalink
fix: go formatting stuff werent running through entire directory (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
MattCMcCoy authored Feb 1, 2024
1 parent c768a85 commit 381af34
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,16 @@ repos:
- id: check-added-large-files
- id: check-merge-conflict
- id: end-of-file-fixer
exclude: "backend/docs/"
exclude: 'backend/docs/'
- id: trailing-whitespace
- id: no-commit-to-branch
args: ["--branch", "main"]
args: ['--branch', 'main']
- repo: local
hooks:
- id: format
language: python
name: Run Format
require_serial: true
entry: bash -c 'task format'
- repo: https://github.com/commitizen-tools/commitizen
rev: v3.13.0
Expand Down
7 changes: 5 additions & 2 deletions Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,13 @@ tasks:
format:
- |
echo -e "Frontend Formatting..."
cd client
npm run format
echo -e "\nBackend Formatting...\n"
cd ../backend
go fmt
go vet
go fmt ./...
go vet ./...
swag f
start-backend:
Expand Down Expand Up @@ -47,5 +49,6 @@ tasks:
pre-commit:
- |
pre-commit clean
pre-commit install --hook-type commit-msg --hook-type pre-push --hook-type pre-commit
pre-commit run --all-files

0 comments on commit 381af34

Please sign in to comment.