Skip to content

Commit

Permalink
➕ Better dependency handling for embeddings
Browse files Browse the repository at this point in the history
  • Loading branch information
arxyzan committed Dec 1, 2023
1 parent 41e021d commit 2591818
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ jobs:
pip install pytest
- name: Run pytest
run: |
pytest --ignore=tests/test_embeddings.py
pytest tests/
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ datasets = ">=2.9.0"
huggingface_hub = ">=0.12.0"
tensorboard = ">=2.10.0"
scikit-learn = ">=1.0.0"
numpy = {version="1.24.*", optional=true}
gensim = {version="4.3.2", optional=true}
seqeval = {version=">=1.2.0", optional=true}
jiwer = {version=">=3.*", optional=true}
Expand All @@ -51,10 +52,9 @@ rouge_score = {version="*", optional=true}
nlp = ["seqeval", "jiwer", "nltk", "rouge_score"]
audio = ["soundfile", "librosa", "jiwer"]
vision = ["pillow"]
embeddings = ["gensim"]
docs = ["sphinx", "myst-parser", "furo", "sphinx-copybutton"]
linting = ["ruff", "black"]
all = ["gensim", "seqeval", "jiwer", "soundfile", "librosa", "pillow", "nltk", "rouge_score"]
embeddings = ["gensim", "numpy"]
dev = ["pytest", "ruff", "sphinx", "myst-parser", "furo", "sphinx-copybutton"]
all = ["numpy", "gensim", "seqeval", "jiwer", "soundfile", "librosa", "pillow", "nltk", "rouge_score"]

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

0 comments on commit 2591818

Please sign in to comment.