Skip to content

Commit

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

* run new black version

* remove indentation
  • Loading branch information
cqc-melf authored Jul 9, 2024
1 parent 6b1278a commit 2aec9ac
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 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
1 change: 0 additions & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ enable=
line-too-long,
lost-exception,
missing-kwoa,
mixed-indentation,
mixed-line-endings,
not-callable,
no-value-for-parameter,
Expand Down
6 changes: 3 additions & 3 deletions pytket/extensions/cirq/backends/cirq.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,9 @@ def __init__(self) -> None:
super().__init__()
self._supports_shots: bool = True
self._supports_counts: bool = True
self._simulator: Union[
Simulator, DensityMatrixSimulator, CliffordSimulator
] = Simulator()
self._simulator: Union[Simulator, DensityMatrixSimulator, CliffordSimulator] = (
Simulator()
)

def _run_circuit(self, circuit: Circuit, n_shots: int) -> BackendResult:
cirq_circ = tk_to_cirq(circuit)
Expand Down

0 comments on commit 2aec9ac

Please sign in to comment.