Skip to content

Commit

Permalink
Move sklearn to optional, install optionals for linting (#117)
Browse files Browse the repository at this point in the history
Signed-off-by: Alex-Brooks <[email protected]>
  • Loading branch information
alex-jw-brooks authored Apr 11, 2024
1 parent 56a6a8d commit 37919ab
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ classifiers=[
dynamic = ["dependencies"]

[project.optional-dependencies]
dev = ["wheel", "packaging", "ninja"]
dev = ["wheel", "packaging", "ninja", "scikit-learn>=1.0, <2.0"]
flash-attn = ["flash-attn"]
aim = ["aim==3.18.1"]

Expand Down
4 changes: 0 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,3 @@ trl
peft>=0.8.0
datasets>=2.15.0
fire

# Dependencies needed only to run scripts.
# TODO: Figure out a better place to put these.
scikit-learn>=1.0, <2.0
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ allowlist_externals = ./scripts/fmt.sh
description = lint with pylint
deps = pylint>=2.16.2,<=3.1.0
pytest
.[dev]
-r requirements.txt
commands = pylint tuning scripts/*.py build/*.py tests
allowlist_externals = pylint

0 comments on commit 37919ab

Please sign in to comment.