Skip to content

Commit

Permalink
tweaking makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
czaloom committed Dec 12, 2024
1 parent 1a7bca1 commit 518d6bd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 18 deletions.
18 changes: 4 additions & 14 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
.PHONY: install install-dev pre-commit tests external-tests clean help
.PHONY: install pre-commit tests clean help

install:
@echo "Installing from source..."
pip install -e src/[mistral, openai]

install-dev:
pip install -e src/[all]
pip install -e src/[dev]

pre-commit:
@echo "Running pre-commit..."
Expand All @@ -19,16 +16,9 @@ test:
pytest tests/semantic_segmentation
pytest tests/text_generation

clean:
@echo "Cleaning up temporary files..."
rm -rf .pytest_cache __pycache__ valor_lite.egg-info

help:
@echo "Available targets:"
@echo " install Install the valor_lite library from source."
@echo " install-dev Install valor_lite along with development tools."
@echo " install Install from source with developer tools."
@echo " pre-commit Run pre-commit."
@echo " tests Run unit tests."
@echo " integration-tests Run external integration tests."
@echo " clean Remove temporary files."
@echo " tests Run tests."
@echo " help Show this help message."
6 changes: 3 additions & 3 deletions docs/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ conda create --name valor python=3.10
conda activate valor
```

Install the `valor-lite` module along with any packages required for development:
Install the `valor-lite` module from source:
```bash
make install-dev
make install
```

### Running Tests
Expand All @@ -63,5 +63,5 @@ make pre-commit

Run all tests using:
```shell
make tests
make test
```
2 changes: 1 addition & 1 deletion src/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ docs = [
"mkdocs-include-dir-to-nav",
"mkdocs-swagger-ui-tag",
]
all = ["valor-lite[mistral, openai, test, docs]"]
dev = ["valor-lite[openai, mistral, test, docs]"]

[tool.black]
line-length = 79
Expand Down

0 comments on commit 518d6bd

Please sign in to comment.