Skip to content

Commit

Permalink
Add target to run pre-commit checks
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyMcCormick committed Oct 30, 2024
1 parent ea590ba commit d7e447f
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@ MAKEFLAGS += --no-print-directory

help:
@echo "Available targets for Felis:"
@echo " build - Build the package"
@echo " docs - Generate the documentation"
@echo " check - Run pre-commit checks"
@echo " test - Run tests"
@echo " numpydoc - Check numpydoc style"
@echo " mypy - Run mypy static type checker"
@echo " all - Run all tasks"
@echo " build - Build the package"
@echo " docs - Generate the documentation"
@echo " check - Run pre-commit checks"
@echo " test - Run tests"
@echo " numpydoc - Check numpydoc style"
@echo " mypy - Run mypy static type checker"
@echo " precommit - Run pre-commit checks"
@echo " all - Run all tasks"

build docs check test numpydoc mypy: print_target

Expand Down Expand Up @@ -39,11 +40,15 @@ numpydoc:
mypy:
@mypy python/

precommit:
@pre-commit run --all-files

all:
@$(MAKE) build
@$(MAKE) docs
@$(MAKE) check
@$(MAKE) test
@$(MAKE) numpydoc
@$(MAKE) mypy
@$(MAKE) precommit
@echo "All tasks completed."

0 comments on commit d7e447f

Please sign in to comment.