From 5054cd34c92c6c5d5ff4f8b8a6488c4ab1395f4b Mon Sep 17 00:00:00 2001 From: Max Resnick Date: Sun, 25 May 2025 22:18:03 -0700 Subject: chore: linting, add tmp dir for tests --- .ghglog/config.yml | 28 ++++++++++++++-------------- justfile | 4 +++- 2 files changed, 17 insertions(+), 15 deletions(-) diff --git a/.ghglog/config.yml b/.ghglog/config.yml index 5b772c3..6d4e82f 100755 --- a/.ghglog/config.yml +++ b/.ghglog/config.yml @@ -5,23 +5,23 @@ info: repository_url: https://git.ofmax.li/go-bumpver options: commits: - # filters: - # Type: - # - feat - # - fix - # - perf - # - refactor + # filters: + # Type: + # - feat + # - fix + # - perf + # - refactor commit_groups: - # title_maps: - # feat: Features - # fix: Bug Fixes - # perf: Performance Improvements - # refactor: Code Refactoring + # title_maps: + # feat: Features + # fix: Bug Fixes + # perf: Performance Improvements + # refactor: Code Refactoring header: pattern: "^(\\w*)\\:\\s(.*)$" pattern_maps: - - Type - - Subject + - Type + - Subject notes: keywords: - - BREAKING CHANGE \ No newline at end of file + - BREAKING CHANGE diff --git a/justfile b/justfile index 077e7b2..cebdd7a 100644 --- a/justfile +++ b/justfile @@ -7,8 +7,10 @@ install: install bumpver $HOME/.local/bin test: + mkdir -p testdata + yamlfmt -lint . golangci-lint run - go test -v -coverprofile={{ TEMPDIR }}/testcover.out ./... + TMPDIR=$PWD/testdata go test -v -coverprofile={{ TEMPDIR }}/testcover.out ./... go tool cover -func={{ TEMPDIR }}/testcover.out release part: build -- cgit v1.2.3