Skip to content
Merged
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
12 changes: 8 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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 {} +
Expand All @@ -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
Expand Down