Skip to content

Commit

Permalink
ci: migrate to uv + tox based setup🔧
Browse files Browse the repository at this point in the history
  • Loading branch information
KarelZe committed Nov 24, 2024
1 parent 18b7f52 commit 7da9806
Show file tree
Hide file tree
Showing 5 changed files with 260 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pip install tclf

**[uv⚡](https://github.com/astral-sh/uv)**
```console
uv pip install tclf
uv add tclf
```

## Supported Algorithms
Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pip install tclf

**[uv⚡](https://github.com/astral-sh/uv)**
```console
uv pip install tclf
uv add tclf
```

## Supported Algorithms
Expand Down
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ classifiers = [
dependencies = [
"numpy",
"pandas",
"scikit-learn"
"ruff>=0.8.0",
"scikit-learn",
]
dynamic = ["version"]

Expand Down Expand Up @@ -99,6 +100,7 @@ include = ["*.py", "*.pyi", "**/pyproject.toml", "*.ipynb"]
select = [
"C", # flake8-comprehensions
"D", # pydocstyle
"DOC", # pydoclint
"E", # pycodestyle errors
"F", # pyflakes
"FURB", # refurb
Expand Down
4 changes: 4 additions & 0 deletions src/tclf/classical_classifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ def _more_tags(self) -> dict[str, bool | dict[str, str]]:
"""Set tags for sklearn.
See: https://scikit-learn.org/stable/developers/develop.html#estimator-tags
Returns:
dict[str, bool | dict[str, str]]: dict with tags
"""
return {
"allow_nan": True,
Expand Down Expand Up @@ -213,6 +216,7 @@ def _mid(self, subset: str) -> npt.NDArray:
Args:
subset (str): subset i.e.,
'ex' or 'best'
Returns:
npt.NDArray: midpoints. Can be np.NaN.
"""
Expand Down
Loading

0 comments on commit 7da9806

Please sign in to comment.