Skip to content

Commit

Permalink
Replacing pytest-watch with pytest-watcher (#8)
Browse files Browse the repository at this point in the history
* Replacing pytest-watch with pytest-watcher

* Missing deps target
  • Loading branch information
benrady-aq authored Aug 1, 2024
1 parent 79ae7b8 commit 4483ad5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
11 changes: 7 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,13 @@ deps: $(DEPS)
.PHONY: test
test: pytest pylint mypy ## run unit tests and linters

.PHONY: build
build: test
.PHONY: coverage
coverage: deps
$(VENV)/bin/pytest --cov-report html:reports --cov=interview interview/

.PHONY: build
build: coverage test

.PHONY: watch
watch: deps ## run unit tests and linters continuously
$(PYTHON_CMD) -m pytest_watch --onpass "make mypy pylint" --runner $(VENV_BIN)/pytest --ignore $(VENV)
watch: deps ## run unit tests continuously
$(PYTHON_CMD) -m pytest_watcher --ignore-patterns "$(VENV)/*" --now --runner $(VENV_BIN)/pytest interview
3 changes: 1 addition & 2 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,4 @@ dependencies:
- mypy=1.10.0
- pylint=3.0.4
- pytest-cov=5.0.0
- pip:
- pytest-watch==4.2.0
- pytest-watcher=0.4.2

0 comments on commit 4483ad5

Please sign in to comment.