Skip to content

Commit 96c61fc

Browse files
committed
refactor: extend the make clean command
1 parent 2bafb83 commit 96c61fc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

{{ cookiecutter.repo_name }}/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ data: requirements
3030

3131
## Delete all compiled Python files
3232
clean:
33-
find . -name "*.pyc" -exec rm {} \;
33+
find . -type f -name "*.py[co]" -delete
34+
find . -type d -name "__pycache__" -delete
3435

3536
## Lint using flake8
3637
lint:

0 commit comments

Comments
 (0)