mirror of
https://github.com/wassname/cookiecutter-data-science.git
synced 2026-06-27 18:59:04 +08:00
make format
This commit is contained in:
@@ -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 #
|
||||
|
||||
Reference in New Issue
Block a user