Skip to content

Commit

Permalink
Update pre-commit tools
Browse files Browse the repository at this point in the history
  • Loading branch information
tovrstra committed Feb 26, 2024
1 parent 8865342 commit fb5f96c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.5.0
hooks:
- id: check-added-large-files
- id: check-ast
Expand All @@ -21,18 +21,18 @@ repos:
args: ["--autofix", "--no-sort-keys"]
- id: trailing-whitespace
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.4
rev: v1.5.5
hooks:
- id: remove-crlf
- repo: https://github.com/psf/black
rev: 23.7.0
rev: 24.2.0
hooks:
- id: black
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 'v0.0.287'
rev: 'v0.2.2'
hooks:
- id: ruff
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.26.3
rev: 0.28.0
hooks:
- id: check-github-workflows
3 changes: 2 additions & 1 deletion src/denspart/vh.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"""


import itertools
import time
import typing
from functools import partial
Expand Down Expand Up @@ -144,7 +145,7 @@ def callback(_current_pars, opt_result):
with np.errstate(all="raise"):
# The errstate is changed to detect potentially nasty numerical issues.
# Optimize parameters within the bounds.
bounds = sum([fn.bounds for fn in pro_model.fns], [])
bounds = list(itertools.chain.from_iterable(fn.bounds for fn in pro_model.fns))

optresult = minimize(
cost_grad,
Expand Down

0 comments on commit fb5f96c

Please sign in to comment.