Skip to content

Commit

Permalink
Add make targets for clean and format (python-poetry#1266)
Browse files Browse the repository at this point in the history
  • Loading branch information
dazza-codes authored and brycedrennan committed Sep 5, 2019
1 parent 9b51606 commit 7b1e01f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,17 @@ list:
# required for list
no_targets__:

clean:
@rm -rf build dist .eggs *.egg-info
@rm -rf .benchmarks .coverage coverage.xml htmlcov report.xml .tox
@find . -type d -name '.mypy_cache' -exec rm -rf {} +
@find . -type d -name '__pycache__' -exec rm -rf {} +
@find . -type d -name '*pytest_cache*' -exec rm -rf {} +
@find . -type f -name "*.py[co]" -exec rm -rf {} +

format: clean
@poetry run black poetry/ tests/

# install all dependencies
setup: setup-python

Expand Down

0 comments on commit 7b1e01f

Please sign in to comment.