Skip to content

Commit 10ef3be

Browse files
authored
chore: bump ruff (#521)
* chore: ruff 0.5.2 -> 0.6.5 * chore: update ruff hook * fix: ruff errors * chore: ruff 0.6.5 -> 0.6.6
1 parent 9324da3 commit 10ef3be

File tree

4 files changed

+9
-13
lines changed

4 files changed

+9
-13
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,8 @@ repos:
22
- hooks:
33
- id: ruff
44
name: ruff-lint
5-
repo: https://github.com/astral-sh/ruff-pre-commit
6-
rev: v0.5.2
7-
8-
- hooks:
95
- id: ruff-format
106
name: ruff-format
117
args: [--check]
128
repo: https://github.com/astral-sh/ruff-pre-commit
13-
rev: v0.5.2
9+
rev: v0.6.6

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ optional = true
2121
pytest = "^8.0.0"
2222
pytest-cov = "^4.1.0"
2323
coverage = "^7.4.1"
24-
ruff = "0.5.2"
24+
ruff = "0.6.6"
2525
pre-commit = "^3.7.1"
2626

2727

tests/test_acquisition.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,27 +12,27 @@
1212
from bayes_opt.target_space import TargetSpace
1313

1414

15-
@pytest.fixture()
15+
@pytest.fixture
1616
def target_func():
1717
return lambda x: sum(x)
1818

1919

20-
@pytest.fixture()
20+
@pytest.fixture
2121
def random_state():
2222
return np.random.RandomState()
2323

2424

25-
@pytest.fixture()
25+
@pytest.fixture
2626
def gp(random_state):
2727
return GaussianProcessRegressor(random_state=random_state)
2828

2929

30-
@pytest.fixture()
30+
@pytest.fixture
3131
def target_space(target_func):
3232
return TargetSpace(target_func=target_func, pbounds={"x": (1, 4), "y": (0, 3.0)})
3333

3434

35-
@pytest.fixture()
35+
@pytest.fixture
3636
def constrained_target_space(target_func):
3737
constraint_model = ConstraintModel(fun=lambda params: params["x"] + params["y"], lb=0.0, ub=1.0)
3838
return TargetSpace(

tests/test_constraint.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
from bayes_opt import BayesianOptimization, ConstraintModel
88

99

10-
@pytest.fixture()
10+
@pytest.fixture
1111
def target_function():
1212
return lambda x, y: np.cos(2 * x) * np.cos(y) + np.sin(x)
1313

1414

15-
@pytest.fixture()
15+
@pytest.fixture
1616
def constraint_function():
1717
return lambda x, y: np.cos(x) * np.cos(y) - np.sin(x) * np.sin(y)
1818

0 commit comments

Comments
 (0)