Skip to content

Commit

Permalink
Add Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
wkentaro committed Dec 28, 2023
1 parent 8cfd082 commit ea402ad
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
all:
@echo '## Make commands ##'
@echo
@$(MAKE) -pRrq -f $(lastword $(MAKEFILE_LIST)) : 2>/dev/null | awk -v RS= -F: '/^# File/,/^# Finished Make data base/ {if ($$1 !~ "^[#.]") {print $$1}}' | sort | egrep -v -e '^[^[:alnum:]]' -e '^$@$$' | xargs

lint:
ruff format --check
ruff check

format:
ruff format
ruff check --fix

test:
MPLBACKEND='agg' pytest tests

0 comments on commit ea402ad

Please sign in to comment.