diff --git a/.bandit b/.bandit new file mode 100644 index 000000000..f016c3262 --- /dev/null +++ b/.bandit @@ -0,0 +1,2 @@ +assert_used: + skips: ["*_test.py", "test_*.py"] diff --git a/.github/workflows/main_ci.yml b/.github/workflows/main_ci.yml index 42023abbd..b0ca760fd 100644 --- a/.github/workflows/main_ci.yml +++ b/.github/workflows/main_ci.yml @@ -27,6 +27,7 @@ jobs: run: | python -m pip install -U pip python -m pip install -r dev-requirements.txt + python -m pip install -r requirements.txt - name: Code Quality run: | @@ -36,7 +37,7 @@ jobs: pylint src -E mypy interrogate -vv --fail-under=80 - bandit -r src + bandit -r src -c .bandit mdformat . nbqa black . nbqa isort . diff --git a/.github/workflows/pull_request_ci.yml b/.github/workflows/pull_request_ci.yml index 9a4b7954c..c602f10d2 100644 --- a/.github/workflows/pull_request_ci.yml +++ b/.github/workflows/pull_request_ci.yml @@ -38,7 +38,7 @@ jobs: pylint src -E mypy interrogate -vv --fail-under=80 - bandit -r src + bandit -r src -c .bandit mdformat . nbqa black . nbqa isort . diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ca06d32a0..ce857cc5f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/ambv/black - rev: 22.1.0 + rev: 22.3.0 hooks: - id: black @@ -20,7 +20,7 @@ repos: rev: 1.5.0 hooks: - id: interrogate - args: [-vv, -i, --fail-under=80] + args: [src, -vv, -i, --fail-under=80] - repo: https://github.com/pre-commit/mirrors-mypy rev: "v0.941" # Use the sha / tag you want to point at @@ -75,10 +75,6 @@ repos: rev: 1.3.1 hooks: - id: nbqa-black - additional_dependencies: [black==20.8b1] - id: nbqa-isort - additional_dependencies: [isort==5.6.4] - id: nbqa-flake8 - additional_dependencies: [flake8==4.0.1] - id: nbqa-mypy - additional_dependencies: [mypy==0.941] diff --git a/.pylintrc b/.pylintrc new file mode 100644 index 000000000..7615b8695 --- /dev/null +++ b/.pylintrc @@ -0,0 +1,2 @@ +[FORMAT] +max-line-length=120 diff --git a/README.md b/README.md index 7a085a1a4..f9d3be08e 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,9 @@ -# Qilimanjaro Library Boilerplate +# Qilimanjaro Library for the Lab: QiliLab + [![codecov](https://codecov.io/gh/qilimanjaro-tech/qililab/branch/main/graph/badge.svg?token=gSfTPmCeJw)](https://codecov.io/gh/qilimanjaro-tech/qililab) ![interrogate](./interrogate_badge.svg) -Qilimanjaro template repository to create a Python library +This is the Qilimanjaro Library tools to manage the low-level stack control of the Qilimanjaro quantum chips: for both the laboratory devices and hardware quantum control, and also the Qubit Simulators. ## Development setup diff --git a/pyproject.toml b/pyproject.toml index f83e844d3..c144bc2dc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -48,7 +48,7 @@ ensure_newline_before_comments = true [tool.commitizen] version = "0.0.0" version_files = [ - "src/boilerplate/__init__.py", + "src/qililab/__init__.py", "pyproject.toml:version" ] tag_format = "$version"