Skip to content

Commit

Permalink
Add Makefile for development shortcuts
Browse files Browse the repository at this point in the history
Use standard commands (dev, lint, test) for development --
reduces the need to check the README for repository-specific commands.
  • Loading branch information
teroyks committed Aug 17, 2023
1 parent dbeef7c commit a60ca85
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
16 changes: 16 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
.PHONY: help
help:
@echo "check README for usage"

.PHONY: dev
dev:
pip install -e . -r requirements-test.txt pre-commit
pre-commit install

.PHONY: lint
lint:
pre-commit run --all-files

.PHONY: test
test:
pytest
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,11 @@ print(config.steps['cool step'].command)

```bash
# setup development dependencies
pip install -e . -r requirements-test.txt pre-commit
pre-commit install
make dev

# run linting and type checks
pre-commit run --all-files
make lint

# run tests
pytest
make test
```

0 comments on commit a60ca85

Please sign in to comment.