diff --git a/Makefile b/Makefile index 09b40ca..5f3b62a 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,11 @@ -.PHONY: clean-pyc clean-build docs clean +.PHONY: help clean clean-build clean-pyc clean-test test docs help: @echo "clean - remove all build, test, coverage and Python artifacts" @echo "clean-build - remove build artifacts" @echo "clean-pyc - remove Python file artifacts" - @echo "clean-test - remove test and coverage artifacts" - @echo "test - run tests on every Python version with tox" + @echo "clean-test - remove test, coverage and formatting artifacts" + @echo "test - run tests with tox and format with ruff" @echo "docs - generate Sphinx HTML documentation, including API docs" clean: clean-build clean-pyc clean-test @@ -15,7 +15,9 @@ clean-build: rm -fr dist/ rm -fr .eggs/ find . -name '*.egg-info' -exec rm -fr {} + - find . -name '*.egg' -exec rm -f {} + + # Directory .tox/, if it exists, contains subdirectories ending with + # "egg", so we need to exclude it from the search. + find . -name '*.egg' -prune -name ".tox" -exec rm -f {} + clean-pyc: find . -name '*.pyc' -exec rm -f {} + @@ -27,6 +29,8 @@ clean-test: rm -fr .tox/ rm -f .coverage rm -fr htmlcov/ + rm -fr .pytest_cache/ + rm -fr .ruff_cache/ test: tox