Makefile 369 B

123456789101112131415
  1. all:
  2. @echo '## Make commands ##'
  3. @echo
  4. @$(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
  5. lint:
  6. ruff format --check
  7. ruff check
  8. format:
  9. ruff format
  10. ruff check --fix
  11. test:
  12. MPLBACKEND='agg' pytest tests