Kentaro Wada 1 rok temu
rodzic
commit
ca07cccb3b
1 zmienionych plików z 15 dodań i 0 usunięć
  1. 15 0
      Makefile

+ 15 - 0
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