From 9d93553f98a7d2337d656f1a1765031fb9600ce1 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 14 May 2024 10:50:32 -0600 Subject: [PATCH] chore(deps): bump the python-packages group with 4 updates (#177) * chore(deps): bump the python-packages group with 4 updates Bumps the python-packages group with 4 updates: [phir](https://github.com/CQCL/phir), [pre-commit](https://github.com/pre-commit/pre-commit), [ruff](https://github.com/astral-sh/ruff) and [setuptools-scm](https://github.com/pypa/setuptools_scm). Updates `phir` from 0.3.2 to 0.3.3 - [Release notes](https://github.com/CQCL/phir/releases) - [Changelog](https://github.com/CQCL/phir/blob/main/CHANGELOG.md) - [Commits](https://github.com/CQCL/phir/compare/v0.3.2...v0.3.3) Updates `pre-commit` from 3.7.0 to 3.7.1 - [Release notes](https://github.com/pre-commit/pre-commit/releases) - [Changelog](https://github.com/pre-commit/pre-commit/blob/main/CHANGELOG.md) - [Commits](https://github.com/pre-commit/pre-commit/compare/v3.7.0...v3.7.1) Updates `ruff` from 0.4.3 to 0.4.4 - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md) - [Commits](https://github.com/astral-sh/ruff/compare/v0.4.3...v0.4.4) Updates `setuptools-scm` from 8.0.4 to 8.1.0 - [Release notes](https://github.com/pypa/setuptools_scm/releases) - [Changelog](https://github.com/pypa/setuptools_scm/blob/main/CHANGELOG.md) - [Commits](https://github.com/pypa/setuptools_scm/compare/v8.0.4...v8.1.0) --- updated-dependencies: - dependency-name: phir dependency-type: direct:production update-type: version-update:semver-patch dependency-group: python-packages - dependency-name: pre-commit dependency-type: direct:production update-type: version-update:semver-patch dependency-group: python-packages - dependency-name: ruff dependency-type: direct:production update-type: version-update:semver-patch dependency-group: python-packages - dependency-name: setuptools-scm dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages ... Signed-off-by: dependabot[bot] * fix: apply ruff suggestion --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Kartik Singhal --- .pre-commit-config.yaml | 2 +- requirements.txt | 8 ++++---- tests/test_utils.py | 4 +++- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 214139ab..e39e685c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -25,7 +25,7 @@ repos: - black==23.10.1 - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.4.3 + rev: v0.4.4 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] diff --git a/requirements.txt b/requirements.txt index 2b53a643..f4c89a2b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,14 +1,14 @@ build==1.2.1 mypy==1.10.0 networkx==2.8.8 -phir==0.3.2 -pre-commit==3.7.0 +phir==0.3.3 +pre-commit==3.7.1 pydata_sphinx_theme==0.15.2 pytest==8.2.0 pytest-order==1.2.1 pytket==1.27.0 -ruff==0.4.3 -setuptools_scm==8.0.4 +ruff==0.4.4 +setuptools_scm==8.1.0 sphinx==7.3.7 wasmtime==20.0.0 wheel==0.43.0 diff --git a/tests/test_utils.py b/tests/test_utils.py index e6638b39..06e6efd6 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -88,4 +88,6 @@ def get_phir_json(qasmfile: QasmFile, *, rebase: bool) -> "JsonDict": def get_wat_as_wasm_bytes(wat_file: WatFile) -> bytes: """Gets a given wat file, converted to WASM bytes by wasmtime.""" this_dir = Path(Path(__file__).resolve()).parent - return wat2wasm(Path(f"{this_dir}/data/wasm/{wat_file.name}.wat").read_text()) + return wat2wasm( + Path(f"{this_dir}/data/wasm/{wat_file.name}.wat").read_text(encoding="utf-8") + )