Skip to content

Commit

Permalink
⬆️🪝 update pre-commit hooks (#406)
Browse files Browse the repository at this point in the history
<!--pre-commit.ci start-->
updates:
- [github.com/srstevenson/nb-clean: 3.2.0 →
3.3.0](srstevenson/nb-clean@3.2.0...3.3.0)
- [github.com/astral-sh/ruff-pre-commit: v0.4.8 →
v0.4.9](astral-sh/ruff-pre-commit@v0.4.8...v0.4.9)
<!--pre-commit.ci end-->

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored Jun 17, 2024
1 parent dc5a4cb commit 6c3a44a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ repos:

# Clean jupyter notebooks
- repo: https://github.com/srstevenson/nb-clean
rev: 3.2.0
rev: 3.3.0
hooks:
- id: nb-clean
args:
Expand All @@ -56,7 +56,7 @@ repos:

# Python linting and formatting using ruff
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.8
rev: v0.4.9
hooks:
- id: ruff
args: ["--fix", "--show-fixes"]
Expand Down
10 changes: 2 additions & 8 deletions src/mqt/qcec/parameterized.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,20 +116,14 @@ def check_parameterized(
total_simulations_finished = 0

def update_stats(res: EquivalenceCheckingManager.Results) -> None:
nonlocal total_preprocessing_time
nonlocal total_runtime
nonlocal total_simulations_started
nonlocal total_simulations_finished
nonlocal total_preprocessing_time, total_runtime, total_simulations_started, total_simulations_finished
total_preprocessing_time += res.preprocessing_time
total_runtime += res.check_time
total_simulations_started += res.started_simulations
total_simulations_finished += res.performed_simulations

def write_stats(i: int, res: EquivalenceCheckingManager.Results) -> None:
nonlocal total_preprocessing_time
nonlocal total_runtime
nonlocal total_simulations_started
nonlocal total_simulations_finished
nonlocal total_preprocessing_time, total_runtime, total_simulations_started, total_simulations_finished
res.check_time = total_runtime
res.preprocessing_time = total_preprocessing_time
res.started_simulations = total_simulations_started
Expand Down

0 comments on commit 6c3a44a

Please sign in to comment.