Skip to content

Commit

Permalink
chore(deps): bump the python-packages group with 4 updates (#177)
Browse files Browse the repository at this point in the history
* 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](CQCL/phir@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](pre-commit/pre-commit@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](astral-sh/ruff@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](pypa/setuptools-scm@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] <[email protected]>

* fix: apply ruff suggestion

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kartik Singhal <[email protected]>
  • Loading branch information
dependabot[bot] and qartik authored May 14, 2024
1 parent 459bc6c commit 9d93553
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
8 changes: 4 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -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
4 changes: 3 additions & 1 deletion tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
)

0 comments on commit 9d93553

Please sign in to comment.