-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added make file to simplify local dev runs
- Loading branch information
Showing
2 changed files
with
43 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
initialize_git: | ||
@echo "Initializing git..." | ||
git init | ||
|
||
install: | ||
@echo "Installing..." | ||
poetry install | ||
|
||
activate: | ||
@echo "Activating virtual environment" | ||
poetry shell | ||
|
||
setup_precommit: | ||
@echo "Setting up pre-commit" | ||
pre-commit install | ||
|
||
setup: initialize_git install activate setup_precommit | ||
|
||
test: | ||
@echo "Running tests" | ||
poetry run pytest | ||
|
||
testcov: | ||
@echo "Generating test coverage" | ||
poetry run pytest --cov=sequence_modelling tests/ | ||
|
||
format: | ||
@echo "Formatting code using Black" | ||
poetry run black | ||
|
||
precommit: | ||
@echo "Running Pre-commit" | ||
poetry run pre-commit run --all-files | ||
|
||
## Delete all compiled Python files | ||
clean: | ||
@echo "Cleaning up the repo" | ||
find . -type f -name "*.py[co]" -delete | ||
find . -type f -name ".coverage" -delete | ||
find . -type d -name "__pycache__" -delete | ||
rm -rf .pytest_cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters