Skip to content

Commit

Permalink
update back and pylint version (#91)
Browse files Browse the repository at this point in the history
* update back and pylint version

* run new black version

* remove indentation

* fix lint

* fix lint
  • Loading branch information
cqc-melf authored Jul 9, 2024
1 parent fa3b64f commit c7b347a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Update pip
run: pip install --upgrade pip
- name: Install black and pylint
run: pip install black~=22.3 pylint~=2.13,!=2.13.6
run: pip install black pylint
- name: Check files are formatted with black
run: |
black --check .
Expand Down
2 changes: 0 additions & 2 deletions .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,13 @@ enable=
line-too-long,
lost-exception,
missing-kwoa,
mixed-indentation,
mixed-line-endings,
not-callable,
no-value-for-parameter,
nonexistent-operator,
not-in-loop,
pointless-statement,
redefined-builtin,
relative-import,
return-arg-in-generator,
return-in-init,
return-outside-function,
Expand Down
1 change: 0 additions & 1 deletion pytket/extensions/pyquil/backends/forest.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@
tk_to_pyquil,
)
from pytket.placement import NoiseAwarePlacement
from pytket.architecture import Architecture
from pytket.utils import prepare_circuit
from pytket.utils.operators import QubitPauliOperator
from pytket.utils.outcomearray import OutcomeArray
Expand Down
9 changes: 3 additions & 6 deletions pytket/extensions/pyquil/pyquil_convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,22 +207,19 @@ def pyquil_to_tk(prog: Program) -> Circuit:
@overload
def tk_to_pyquil(
tkcirc: Circuit, active_reset: bool = False, return_used_bits: Literal[False] = ...
) -> Program:
...
) -> Program: ...


@overload
def tk_to_pyquil(
tkcirc: Circuit, active_reset: bool = False, *, return_used_bits: Literal[True]
) -> Tuple[Program, List[Bit]]:
...
) -> Tuple[Program, List[Bit]]: ...


@overload
def tk_to_pyquil(
tkcirc: Circuit, active_reset: bool, return_used_bits: Literal[True]
) -> Tuple[Program, List[Bit]]:
...
) -> Tuple[Program, List[Bit]]: ...


def tk_to_pyquil(
Expand Down

0 comments on commit c7b347a

Please sign in to comment.