typing + version fixes #25
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: Format | |
on: | |
pull_request: | |
branches: ['main'] | |
workflow_dispatch: | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
- name: Install dependencies | |
run: | | |
python3 -m pip install --upgrade pip | |
python3 -m pip install isort 'black[jupyter]' pylint ruff pylint qbraid-cli | |
- name: Check isort, ruff, headers | |
run: | | |
ruff check qbraid_algorithms examples tests tools | |
isort --check-only qbraid_algorithms tests tools | |
black --check qbraid_algorithms tests tools examples --line-length 100 | |
pylint qbraid_algorithms tests tools examples --disable=W0108,W0511,W0401,R0902,E0401 --ignore=qbraid_algorithms/_version.py | |
qbraid admin headers qbraid_algorithms tests tools --type gpl |