Skip to content

Commit 7179ffa

Browse files
⬆️🪝 update pre-commit hooks (cda-tum#431)
<!--pre-commit.ci start--> updates: - [github.com/astral-sh/ruff-pre-commit: v0.5.5 → v0.5.6](astral-sh/ruff-pre-commit@v0.5.5...v0.5.6) - [github.com/pre-commit/mirrors-mypy: v1.11.0 → v1.11.1](pre-commit/mirrors-mypy@v1.11.0...v1.11.1) <!--pre-commit.ci end--> --------- Signed-off-by: burgholzer <burgholzer@me.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: burgholzer <burgholzer@me.com>
1 parent 30614a4 commit 7179ffa

File tree

6 files changed

+6
-7
lines changed

6 files changed

+6
-7
lines changed

.pre-commit-config.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ repos:
5656

5757
# Python linting and formatting using ruff
5858
- repo: https://github.com/astral-sh/ruff-pre-commit
59-
rev: v0.5.5
59+
rev: v0.5.6
6060
hooks:
6161
- id: ruff
6262
args: ["--fix", "--show-fixes"]
@@ -96,7 +96,7 @@ repos:
9696

9797
# Check static types with mypy
9898
- repo: https://github.com/pre-commit/mirrors-mypy
99-
rev: v1.11.0
99+
rev: v1.11.1
100100
hooks:
101101
- id: mypy
102102
files: ^(src/mqt|test/python)

pyproject.toml

-1
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,6 @@ ignore = ["W002"] # Triggers on __init__.py's
169169

170170
[tool.ruff]
171171
line-length = 120
172-
extend-include = ["*.ipynb"]
173172
src = ["src"]
174173
namespace-packages = ["mqt"]
175174
preview = true

src/mqt/qcec/configuration.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
if TYPE_CHECKING:
88
from . import ApplicationScheme, Configuration, StateType
9-
from .types import ApplicationSchemeName, StateTypeName
9+
from .literals import ApplicationSchemeName, StateTypeName
1010

1111

1212
class ConfigurationOptions(TypedDict, total=False):

src/mqt/qcec/types.py src/mqt/qcec/literals.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Types for the QCEC module."""
1+
"""Typing Literals for the QCEC module."""
22

33
from __future__ import annotations
44

src/mqt/qcec/pyqcec.pyi

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ from typing import Any, ClassVar, overload
22

33
from qiskit import QuantumCircuit
44

5-
from .types import ApplicationSchemeName, EquivalenceCriterionName, StateTypeName
5+
from .literals import ApplicationSchemeName, EquivalenceCriterionName, StateTypeName
66

77
class ApplicationScheme:
88
__members__: ClassVar[dict[ApplicationScheme, int]] = ... # read-only

test/python/test_configuration.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import pytest
88

99
if TYPE_CHECKING:
10-
from mqt.qcec.types import ApplicationSchemeName, StateTypeName
10+
from mqt.qcec.literals import ApplicationSchemeName, StateTypeName
1111

1212
from mqt import qcec
1313

0 commit comments

Comments
 (0)