diff --git a/Makefile b/Makefile new file mode 100644 index 000000000..8764b2c9d --- /dev/null +++ b/Makefile @@ -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