Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] authored Aug 10, 2023
1 parent 278d918 commit af6661e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ repos:
- id: check-useless-excludes
# - id: identity # Prints all files passed to pre-commits. Debugging.
- repo: https://github.com/lyz-code/yamlfix
rev: 1.12.0
rev: 1.13.0
hooks:
- id: yamlfix
- repo: https://github.com/pre-commit/pre-commit-hooks
Expand Down Expand Up @@ -54,7 +54,7 @@ repos:
hooks:
- id: blacken-docs
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.278
rev: v0.0.282
hooks:
- id: ruff
# args:
Expand All @@ -70,8 +70,14 @@ repos:
rev: 1.7.0
hooks:
- id: nbqa-black
additional_dependencies:
- black==23.7.0
exclude: src/lcm/sandbox/
- id: nbqa-ruff
additional_dependencies:
- ruff==v0.0.281
args:
- --ignore=B018,T201
exclude: src/lcm/sandbox/
- repo: https://github.com/executablebooks/mdformat
rev: 0.7.16
Expand Down
2 changes: 1 addition & 1 deletion src/lcm/simulate.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ def create_data_scs(

has_sparse_choice_vars = len(vi.query("is_sparse & is_choice")) > 0

n_states = len(list(states.values())[0])
n_states = len(next(iter(states.values())))

# check that all states have an initial value
# ==================================================================================
Expand Down

0 comments on commit af6661e

Please sign in to comment.