Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#101)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/pre-commit/pre-commit-hooks.git: v4.6.0 → v5.0.0](https://github.com/pre-commit/pre-commit-hooks.git/compare/v4.6.0...v5.0.0)
- [github.com/pre-commit/mirrors-mypy: v1.11.2 → v1.12.1](pre-commit/mirrors-mypy@v1.11.2...v1.12.1)

* Add type for extended_weights

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Christopher Manteuffel <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and Chris-Sigopt authored Oct 22, 2024
1 parent cb9f25a commit f7a5088
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ci:
skip: [detect-aws-credentials, pylint]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks.git
rev: v4.6.0
rev: v5.0.0
hooks:
- id: check-added-large-files
args: [--maxkb=100]
Expand Down Expand Up @@ -39,7 +39,7 @@ repos:
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy
rev: "v1.11.2"
rev: "v1.12.1"
hooks:
- id: mypy
entry: mypy
Expand Down
2 changes: 1 addition & 1 deletion libsigopt/views/rest/gp_next_points_categorical.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def _form_domain_for_qei_parallelism(domain, acquisition_function):
base_weights = this_constraint["weights"]
no_constraint = [0] * len(base_weights)
for i in range(num_points_to_sample):
extended_weights = []
extended_weights: list[float] = []
for j in range(num_points_to_sample):
extended_weights.extend(base_weights if i == j else no_constraint)
extended_constraint_list.append(
Expand Down

0 comments on commit f7a5088

Please sign in to comment.