Skip to content

Commit

Permalink
Makefile argument to specify pytest target (TARGET=)
Browse files Browse the repository at this point in the history
  • Loading branch information
bfineran committed Jan 14, 2021
1 parent bbd016f commit 1c390fd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
BUILDDIR := $(PWD)
CHECKDIRS := examples tests src utils scripts setup.py
DOCDIR := docs
TARGET := "" # directory/file/function to target with pytest

# run checks on all files for the repo
quality:
Expand All @@ -20,7 +21,7 @@ style:
# run tests for the repo
test:
@echo "Running python tests";
@pytest;
@pytest $(TARGET);

# create docs
docs:
Expand Down

0 comments on commit 1c390fd

Please sign in to comment.