Skip to content

Commit 71bd520

Browse files
authored
Merge pull request #22 from nacezavrtanik/bugfix/makefile
Bugfix/makefile
2 parents 6c306a9 + b7b65ec commit 71bd520

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

Makefile

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
.PHONY: clean-pyc clean-build docs clean
1+
.PHONY: help clean clean-build clean-pyc clean-test test docs
22

33
help:
44
@echo "clean - remove all build, test, coverage and Python artifacts"
55
@echo "clean-build - remove build artifacts"
66
@echo "clean-pyc - remove Python file artifacts"
7-
@echo "clean-test - remove test and coverage artifacts"
8-
@echo "test - run tests on every Python version with tox"
7+
@echo "clean-test - remove test, coverage and formatting artifacts"
8+
@echo "test - run tests with tox and format with ruff"
99
@echo "docs - generate Sphinx HTML documentation, including API docs"
1010

1111
clean: clean-build clean-pyc clean-test
@@ -15,7 +15,9 @@ clean-build:
1515
rm -fr dist/
1616
rm -fr .eggs/
1717
find . -name '*.egg-info' -exec rm -fr {} +
18-
find . -name '*.egg' -exec rm -f {} +
18+
# Directory .tox/, if it exists, contains subdirectories ending with
19+
# "egg", so we need to exclude it from the search.
20+
find . -name '*.egg' -prune -name ".tox" -exec rm -f {} +
1921

2022
clean-pyc:
2123
find . -name '*.pyc' -exec rm -f {} +
@@ -27,6 +29,8 @@ clean-test:
2729
rm -fr .tox/
2830
rm -f .coverage
2931
rm -fr htmlcov/
32+
rm -fr .pytest_cache/
33+
rm -fr .ruff_cache/
3034

3135
test:
3236
tox

0 commit comments

Comments
 (0)