Skip to content

Commit 61aea16

Browse files
⬆️🪝 update pre-commit hooks (#55)
* ⬆️🪝 update pre-commit hooks updates: - [github.com/astral-sh/ruff-pre-commit: v0.8.4 → v0.9.6](astral-sh/ruff-pre-commit@v0.8.4...v0.9.6) - [github.com/pre-commit/mirrors-mypy: v1.14.0 → v1.15.0](pre-commit/mirrors-mypy@v1.14.0...v1.15.0) - [github.com/rbubley/mirrors-prettier: v3.4.2 → v3.5.1](rbubley/mirrors-prettier@v3.4.2...v3.5.1) - [github.com/crate-ci/typos: v1.28.4 → typos-dict-v0.12.5](crate-ci/typos@v1.28.4...typos-dict-v0.12.5) - [github.com/scientific-python/cookie: 2024.08.19 → 2025.01.22](scientific-python/cookie@2024.08.19...2025.01.22) - [github.com/python-jsonschema/check-jsonschema: 0.30.0 → 0.31.1](python-jsonschema/check-jsonschema@0.30.0...0.31.1) - [github.com/henryiii/validate-pyproject-schema-store: 2024.11.25 → 2025.02.10](henryiii/validate-pyproject-schema-store@2024.11.25...2025.02.10) * 🎨 pre-commit fixes --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 683c103 commit 61aea16

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

.pre-commit-config.yaml

+7-7
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ repos:
5858

5959
# Python linting using ruff
6060
- repo: https://github.com/astral-sh/ruff-pre-commit
61-
rev: v0.8.4
61+
rev: v0.9.6
6262
hooks:
6363
- id: ruff
6464
args: ["--fix", "--show-fixes"]
@@ -68,7 +68,7 @@ repos:
6868

6969
# Static type checking using mypy
7070
- repo: https://github.com/pre-commit/mirrors-mypy
71-
rev: v1.14.0
71+
rev: v1.15.0
7272
hooks:
7373
- id: mypy
7474
files: ^(src/mqt|tests)
@@ -86,14 +86,14 @@ repos:
8686

8787
# Format configuration files with prettier
8888
- repo: https://github.com/rbubley/mirrors-prettier
89-
rev: v3.4.2
89+
rev: v3.5.1
9090
hooks:
9191
- id: prettier
9292
types_or: [yaml, markdown, html, css, scss, javascript, json]
9393

9494
# Check for spelling
9595
- repo: https://github.com/crate-ci/typos
96-
rev: v1.28.4
96+
rev: typos-dict-v0.12.5
9797
hooks:
9898
- id: typos
9999

@@ -108,21 +108,21 @@ repos:
108108

109109
# Check best practices for scientific Python code
110110
- repo: https://github.com/scientific-python/cookie
111-
rev: 2024.08.19
111+
rev: 2025.01.22
112112
hooks:
113113
- id: sp-repo-review
114114
additional_dependencies: ["repo-review[cli]"]
115115

116116
# Check JSON schemata
117117
- repo: https://github.com/python-jsonschema/check-jsonschema
118-
rev: 0.30.0
118+
rev: 0.31.1
119119
hooks:
120120
- id: check-dependabot
121121
- id: check-github-workflows
122122
- id: check-readthedocs
123123

124124
# Check the pyproject.toml file
125125
- repo: https://github.com/henryiii/validate-pyproject-schema-store
126-
rev: 2024.11.25
126+
rev: 2025.02.10
127127
hooks:
128128
- id: validate-pyproject

src/mqt/qao/karp/karp_graphs.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2023,7 +2023,7 @@ def convert_dict_to_string(dictionary: dict[Any, Any]) -> str:
20232023
Returns:
20242024
str: Formatted string representation of the dictionary.
20252025
"""
2026-
result = "Valid Solution" if dictionary.get("Valid Solution", False) else "Invalid Solution"
2026+
result = "Valid Solution" if dictionary.get("Valid Solution") else "Invalid Solution"
20272027
for key, value in dictionary.items():
20282028
if key != "Valid Solution" and isinstance(value, dict):
20292029
result += f"\n{key}:"

src/mqt/qao/karp/karp_number.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ def check_three_sat_solution(clauses: list[list[str]], solution: dict[str, float
345345
@staticmethod
346346
def convert_dict_to_string(dictionary: dict[str, Any]) -> str:
347347
"""Converts a dictionary of solution validation results into a readable string format."""
348-
result = "Valid Solution" if dictionary.get("Valid Solution", False) else "Invalid Solution"
348+
result = "Valid Solution" if dictionary.get("Valid Solution") else "Invalid Solution"
349349
for key, value in dictionary.items():
350350
if key != "Valid Solution":
351351
result += f"\n{key}:"

src/mqt/qao/karp/karp_sets.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1063,7 +1063,7 @@ def convert_dict_to_string(dictionary: dict[Any, Any]) -> str:
10631063
Returns:
10641064
str: A formatted string representation of the validation results.
10651065
"""
1066-
result = "Valid Solution" if dictionary.get("Valid Solution", False) else "Invalid Solution"
1066+
result = "Valid Solution" if dictionary.get("Valid Solution") else "Invalid Solution"
10671067

10681068
for key, value in dictionary.items():
10691069
if key != "Valid Solution" and isinstance(value, dict):

0 commit comments

Comments
 (0)