Skip to content

Commit

Permalink
feat: local pre-commit execution without action
Browse files Browse the repository at this point in the history
  • Loading branch information
Szymon Szyszkowski committed Aug 13, 2024
1 parent 7d74378 commit 4345691
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,5 @@ jobs:
version: "latest"
- name: Sync dependencies
run: rye sync
- name: ensure pip
run: python -m ensurepip # required as pre-commit requires pip to install
- name: Run checks
uses: pre-commit/action@v3.0.1
run: pre-commit run --all-files
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
SHELL := /bin/bash
.PHONY: $(shell sed -n -e '/^$$/ { n ; /^[^ .\#][^ ]*:/ { s/:.*$$// ; p ; } ; }' $(MAKEFILE_LIST))
VERSION := $$(grep '^version' pyproject.toml | sed 's%version = "\(.*\)"%\1%')
APP_NAME := $$(grep '^name' pyproject.toml | sed 's%name = "\(.*\)"%\1%')
APP_NAME := $$(grep '^name' pyproject.toml | head -1 | sed 's%name = "\(.*\)"%\1%')

.DEFAULT_GOAL := help

Expand Down

0 comments on commit 4345691

Please sign in to comment.