Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Dec 7, 2023
1 parent 38a856a commit ccd989b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/rtx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
cache-provider: buildjet
- run: sudo apt-get update; sudo apt-get install shfmt shellcheck
- uses: taiki-e/install-action@just
- run: just lint-fix
- run: just lint-fix render-all
- uses: EndBug/add-and-commit@v9
with:
push: true
Expand Down
4 changes: 3 additions & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ lint-fix:
just --unstable --fmt
npx prettier -w $(git ls-files '*.md' '*.yml' '*.yaml')

render-all: render-help render-completions render-mangen

# regenerate README.md
render-help: build
NO_COLOR=1 rtx render-help
Expand All @@ -116,7 +118,7 @@ render-mangen: build
NO_COLOR=1 rtx render-mangen

# called by lefthook precommit hook
pre-commit: render-help render-completions render-mangen lint
pre-commit: render-all lint
git add README.md
git add completions
git add man
Expand Down

0 comments on commit ccd989b

Please sign in to comment.