Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: go formatting stuff werent running through entire directory #23

Merged
merged 1 commit into from
Feb 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading