Fix QuantumCircuit.__eq__
bug
#842
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint | |
on: | |
pull_request: | |
paths: | |
- packages/**/*.py | |
- packages/**/*.rs | |
- rust/**/*.rs | |
- pyproject.toml | |
- poetry.lock | |
- .flake8 | |
- .github/workflows/lint.yml | |
- .github/actions/python-poetry-install/action.yml | |
- .github/actions/rust-install-cache/action.yml | |
push: | |
branches: [main] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ./.github/actions/python-poetry-install | |
with: | |
poetry-version: '1.4.0' | |
python-version: '3.9' | |
- uses: ./.github/actions/rust-install-cache | |
with: | |
toolchain: "nightly" | |
additional-key: "lint" | |
- name: Install fmt | |
run: rustup component add rustfmt | |
- name: Run format | |
run: cargo fmt --all -- --check | |
if: success() || failure() | |
- run: | | |
poetry env use 3.9 | |
poetry install --only lint | |
- run: poetry run isort packages --check --diff | |
if: success() || failure() | |
- run: poetry run black packages --check | |
if: success() || failure() | |
- run: poetry run flake8 packages | |
if: success() || failure() | |
- run: poetry run docformatter -c -r packages | |
if: success() || failure() |