make format

This commit is contained in:
tamara-glazer
2021-04-02 16:46:42 -04:00
parent 3437c910f4
commit 1ea49d8722
+9 -1
View File
@@ -1,4 +1,4 @@
.PHONY: clean data lint requirements sync_data_down sync_data_up
.PHONY: clean data lint format requirements sync_data_down sync_data_up
#################################################################################
# GLOBALS #
@@ -37,6 +37,10 @@ clean:
lint:
flake8 {{ cookiecutter.module_name }}
## Format with black
format:
black --config pyproject.toml {{ cookiecutter.module_name }}
{% if not cookiecutter.dataset_storage.none %}
## Download Data from storage system
sync_data_down:
@@ -82,6 +86,10 @@ create_environment:
{% endif %}
{% endif %}
## Wrapper for format and lint
pre-commit:
make format
make lint
#################################################################################
# PROJECT RULES #