Skip to content

Commit

Permalink
remove circular referencee
Browse files Browse the repository at this point in the history
  • Loading branch information
CCedricYoung committed Sep 30, 2024
1 parent 5135dd9 commit 9194593
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ repos:
- repo: local
hooks:
- id: makefile
name: run make lint
name: run make ci-lint
entry: make
args: ["lint"]
args: ["ci-lint"]
language: system
pass_filenames: false
verbose: true
13 changes: 11 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,16 @@ lint:
# lint code
uv run ruff check .
# pre-commit
uv run pre-commit run --show-diff-on-failure --from-ref origin/HEAD --to-ref HEAD
SKIP=makefile uv run pre-commit run --show-diff-on-failure --from-ref origin/HEAD --to-ref HEAD
# lint .feature files
uv run cucu lint features

ci-lint:
# make ci-lint
# only for use by CI through pre-commit
# lint code
uv run ruff check .
# don't run pre-commit since CI already did
# lint .feature files
uv run cucu lint features

Expand Down Expand Up @@ -58,4 +67,4 @@ coverage: src/* tests/*
echo "open HTML coverage report at htmlcov/index.html"

# disable caching for all make targets
.PHONY: all help format lint test build coverage
.PHONY: all help format lint ci-lint test build coverage

0 comments on commit 9194593

Please sign in to comment.