Skip to content

Commit

Permalink
refactor: explicit name for utils
Browse files Browse the repository at this point in the history
  • Loading branch information
qartik committed Feb 17, 2025
1 parent bd3c1bd commit 312f4ca
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ shell by setting up [direnv](https://devenv.sh/automatic-shell-activation/).

To setup the environment manually you will need:

- Just: https://just.systems/
- Rust `>=1.75`: https://www.rust-lang.org/tools/install
- Just: <https://just.systems/>
- Rust `>=1.75`: <https://www.rust-lang.org/tools/install>
- uv `>=0.3`: docs.astral.sh/uv/getting-started/installation

Once you have these installed, install the required python dependencies and setup pre-commit hooks with:
Expand Down Expand Up @@ -101,6 +101,7 @@ line-by-line coverage report on
[codecov](https://app.codecov.io/gh/CQCL/tket2/commits?branch=All%20branches).

To run the coverage checks locally, first install `cargo-llvm-cov`.

```bash
cargo install cargo-llvm-cov
```
Expand Down
2 changes: 1 addition & 1 deletion tket2-exts/src/tket2_exts/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def qsystem() -> Extension:


@functools.cache
def utils() -> Extension:
def qsystem_utils() -> Extension:
return load_extension("tket2.qsystem.utils")

Check warning on line 31 in tket2-exts/src/tket2_exts/__init__.py

View check run for this annotation

Codecov / codecov/patch

tket2-exts/src/tket2_exts/__init__.py#L31

Added line #L31 was not covered by tests


Expand Down
4 changes: 2 additions & 2 deletions tket2-py/tket2/extensions/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from tket2_exts import rotation, futures, qsystem, quantum, result, utils
from tket2_exts import rotation, futures, qsystem, qsystem_utils, quantum, result


__all__ = ["rotation", "futures", "qsystem", "quantum", "result", "utils"]
__all__ = ["rotation", "futures", "qsystem", "qsystem_utils", "quantum", "result"]

0 comments on commit 312f4ca

Please sign in to comment.