Skip to content

Commit

Permalink
added make file to simplify local dev runs
Browse files Browse the repository at this point in the history
  • Loading branch information
nbhushan committed Jul 10, 2023
1 parent bff7bbc commit b351c04
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 1 deletion.
41 changes: 41 additions & 0 deletions Makefile
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
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "sequence_modelling"
version = "0.1.3"
version = "0.1.4"
description = "sequence modelling using HMMs"
authors = ["Nitin Bhushan <bhushan.nitin@posteo.net>"]
readme = "README.md"
Expand All @@ -14,6 +14,7 @@ scipy = "^1.10.1"
Sphinx = { version = "4.2.0", optional = true }
sphinx-rtd-theme = { version = "1.0.0", optional = true }
sphinxcontrib-napoleon = { version = "0.7", optional = true }
pytest-cov = "^4.1.0"

[tool.poetry.group.dev.dependencies]
matplotlib = "^3.7.0"
Expand Down

0 comments on commit b351c04

Please sign in to comment.