Skip to content

Commit

Permalink
More pytests
Browse files Browse the repository at this point in the history
  • Loading branch information
hcho3 committed May 2, 2023
1 parent e7dac2a commit 68e5f4d
Show file tree
Hide file tree
Showing 3 changed files with 440 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ repos:
language: python
types: [python]
additional_dependencies: [
pylint, hatchling, pytest, scikit-learn, hypothesis, pandas, treelite
pylint, hatchling, pytest, scikit-learn, hypothesis, pandas, treelite,
lightgbm, xgboost
]
- repo: https://github.com/pocc/pre-commit-hooks
rev: v1.3.5
Expand Down
3 changes: 2 additions & 1 deletion tests/python/hypothesis_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,8 @@ def standard_regression_datasets(
n_features_ = draw(n_features)
if n_informative is None:
n_informative = just(max(min(n_features_, 1), int(0.1 * n_features_)))
X, y, _ = make_regression(
# pylint: disable=unbalanced-tuple-unpacking
X, y = make_regression(
n_samples=draw(n_samples),
n_features=n_features_,
n_informative=draw(n_informative),
Expand Down
Loading

0 comments on commit 68e5f4d

Please sign in to comment.