Skip to content

Commit

Permalink
chore: 🔒 Add uv.lock file
Browse files Browse the repository at this point in the history
  • Loading branch information
DRovara committed Oct 9, 2024
1 parent f363ae5 commit 4cc6967
Show file tree
Hide file tree
Showing 4 changed files with 2,617 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ repos:
rev: v2.3.0
hooks:
- id: codespell
args: ["-L", "wille,linz", "--skip", "*.ipynb"]
args: ["-L", "wille,linz,astroid", "--skip", "*.ipynb"]

# Catch common capitalization mistakes
- repo: local
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ classifiers = [
"Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)",
"Typing :: Typed",
]
requires-python = ">=3.8"
requires-python = ">=3.9"
dynamic = ["version"]

[project.optional-dependencies]
Expand Down Expand Up @@ -156,7 +156,7 @@ report.exclude_also = [
[tool.mypy]
files = ["src/mqt", "test/python"]
mypy_path = ["$MYPY_CONFIG_FILE_DIR/src"]
python_version = "3.8"
python_version = "3.9"
warn_unused_configs = true
enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"]
strict = true
Expand Down
9 changes: 6 additions & 3 deletions test/python/test_python_bindings.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,16 @@

import locale
from pathlib import Path
from typing import Generator, Tuple, cast
from typing import TYPE_CHECKING, cast

import pytest

import mqt.debugger

SimulationInstance = Tuple[mqt.debugger.SimulationState, int]
if TYPE_CHECKING:
from collections.abc import Generator

SimulationInstance = tuple[mqt.debugger.SimulationState, int]


@pytest.fixture(scope="module")
Expand Down Expand Up @@ -69,7 +72,7 @@ def simulation_state_cleanup(

def load_fixture(request: pytest.FixtureRequest, name: str) -> tuple[mqt.debugger.SimulationState, int]:
"""Loads a fixture with the given name."""
return cast(Tuple[mqt.debugger.SimulationState, int], request.getfixturevalue(name))
return cast(tuple[mqt.debugger.SimulationState, int], request.getfixturevalue(name))


@pytest.mark.parametrize(
Expand Down
Loading

0 comments on commit 4cc6967

Please sign in to comment.