Skip to content

Commit

Permalink
⬆️🪝 update pre-commit hooks (#431)
Browse files Browse the repository at this point in the history
<!--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>
  • Loading branch information
pre-commit-ci[bot] and burgholzer authored Aug 6, 2024
1 parent 30614a4 commit 7179ffa
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ repos:

# Python linting and formatting using ruff
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.5
rev: v0.5.6
hooks:
- id: ruff
args: ["--fix", "--show-fixes"]
Expand Down Expand Up @@ -96,7 +96,7 @@ repos:

# Check static types with mypy
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.11.0
rev: v1.11.1
hooks:
- id: mypy
files: ^(src/mqt|test/python)
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,6 @@ ignore = ["W002"] # Triggers on __init__.py's

[tool.ruff]
line-length = 120
extend-include = ["*.ipynb"]
src = ["src"]
namespace-packages = ["mqt"]
preview = true
Expand Down
2 changes: 1 addition & 1 deletion src/mqt/qcec/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

if TYPE_CHECKING:
from . import ApplicationScheme, Configuration, StateType
from .types import ApplicationSchemeName, StateTypeName
from .literals import ApplicationSchemeName, StateTypeName


class ConfigurationOptions(TypedDict, total=False):
Expand Down
2 changes: 1 addition & 1 deletion src/mqt/qcec/types.py → src/mqt/qcec/literals.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Types for the QCEC module."""
"""Typing Literals for the QCEC module."""

from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion src/mqt/qcec/pyqcec.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ from typing import Any, ClassVar, overload

from qiskit import QuantumCircuit

from .types import ApplicationSchemeName, EquivalenceCriterionName, StateTypeName
from .literals import ApplicationSchemeName, EquivalenceCriterionName, StateTypeName

class ApplicationScheme:
__members__: ClassVar[dict[ApplicationScheme, int]] = ... # read-only
Expand Down
2 changes: 1 addition & 1 deletion test/python/test_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import pytest

if TYPE_CHECKING:
from mqt.qcec.types import ApplicationSchemeName, StateTypeName
from mqt.qcec.literals import ApplicationSchemeName, StateTypeName

from mqt import qcec

Expand Down

0 comments on commit 7179ffa

Please sign in to comment.