Skip to content

Commit

Permalink
⬆️🪝 update pre-commit hooks (#546)
Browse files Browse the repository at this point in the history
<!--pre-commit.ci start-->
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.1.14 →
v0.2.0](astral-sh/ruff-pre-commit@v0.1.14...v0.2.0)
<!--pre-commit.ci end-->

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored Feb 5, 2024
1 parent f253395 commit f3e105e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ repos:

# Python linting using ruff
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.14
rev: v0.2.0
hooks:
- id: ruff
args: ["--fix", "--show-fixes"]
Expand Down
4 changes: 2 additions & 2 deletions src/mqt/core/_core/operations.pyi
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from abc import ABCMeta, abstractmethod
from abc import ABC, abstractmethod
from collections.abc import Mapping, Sequence
from typing import ClassVar, overload

Expand Down Expand Up @@ -90,7 +90,7 @@ class OpType:
def __ne__(self: Self, other: object) -> bool: ...
def __setstate__(self: Self, state: int) -> None: ...

class Operation(metaclass=ABCMeta):
class Operation(ABC):
type_: OpType
controls: set[Control]
num_qubits: int
Expand Down

0 comments on commit f3e105e

Please sign in to comment.