Skip to content
Snippets Groups Projects
Unverified Commit 71ea04ff authored by Daniel's avatar Daniel
Browse files

DOC: Help for Makefile.

parent 93e97e5d
Branches
No related tags found
No related merge requests found
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
# Just a collection of scripts # Just a collection of scripts
.PHONY: all autopep8 test .PHONY: all autopep8 test help
# Do the integration tests. # Do the integration tests.
# Accepts freestyle arguments like so: # Accepts freestyle arguments like so:
...@@ -29,9 +29,26 @@ ...@@ -29,9 +29,26 @@
test: test:
cd tests && pytest $(test_opts) cd tests && pytest $(test_opts)
# Just print the help.
define HELP
The most common targets:
make test :: Do the integration tests. Accepts freestyle arguments like so:
`make test test_opts=test_foo.py -k test_function`
Prepare everything for running.
make autopep8 :: Autoformatting for all tests
make all :: Run autopep8 and test
endef
export HELP
help:
@echo "$$HELP"
# Run the tests through autopep8. # Run the tests through autopep8.
autopep8: autopep8:
autopep8 -ri tests autopep8 -ri tests
# Meta target to call the other targets. # Meta target to call the other targets.
all: autopep8 test all: autopep8 test
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment