Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cookiecutter.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"version": "0.1.0",
"use_pytest": "n",
"use_black": "n",
"use_isort": "n",
"use_pypi_deployment_with_travis": "y",
"add_pyup_badge": "n",
"command_line_interface": ["Click", "Argparse", "No command-line interface"],
Expand Down
6 changes: 5 additions & 1 deletion {{cookiecutter.project_slug}}/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.PHONY: clean clean-build clean-pyc clean-test coverage dist docs help install lint lint/flake8
{%- if cookiecutter.use_black == 'y' %} lint/black{% endif %}
{%- if cookiecutter.use_isort == 'y' %} lint/isort{% endif %}
.DEFAULT_GOAL := help

define BROWSER_PYSCRIPT
Expand Down Expand Up @@ -56,7 +57,10 @@ lint/black: ## check style with black
black --check {{ cookiecutter.project_slug }} tests
{%- endif %}

lint: lint/flake8{%- if cookiecutter.use_black == 'y' %} lint/black{%- endif %} ## check style
lint/isort: ## clean up all of the imports (using isort)
isort src tests

lint: lint/flake8{%- if cookiecutter.use_black == 'y' %} lint/black{%- endif %}{%- if cookiecutter.use_isort == 'y' %} lint/isort{%- endif %} ## check style

test: ## run tests quickly with the default Python
{%- if cookiecutter.use_pytest == 'y' %}
Expand Down
2 changes: 2 additions & 0 deletions {{cookiecutter.project_slug}}/requirements_dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ Click==7.1.2{% endif %}
pytest==6.2.4{% endif %}
{% if cookiecutter.use_black == 'y' -%}
black==21.7b0{% endif %}
{% if cookiecutter.use_isort == 'y' -%}
isort{% endif %}