Skip to content

Commit 7da99a7

Browse files
authored
bump Python version to 0.8.0.dev8 + linting (#271)
1 parent 8dd1bc8 commit 7da99a7

24 files changed

Lines changed: 65 additions & 58 deletions

File tree

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,19 @@ repos:
2424
- id: debug-statements
2525

2626
- repo: https://github.com/crate-ci/typos
27-
rev: v1.38.1
27+
rev: v1
2828
hooks:
2929
- id: typos
3030
args: []
3131

3232
- repo: https://github.com/astral-sh/ruff-pre-commit
33-
rev: v0.14.0
33+
rev: v0.15.7
3434
hooks:
3535
- id: ruff-check
3636
args: [--fix, --exit-non-zero-on-fix]
3737

3838
- repo: https://github.com/psf/black
39-
rev: 25.9.0
39+
rev: 26.3.1
4040
hooks:
4141
- id: black
4242

.typos.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ ket = "ket"
55
wqs = "wqs"
66
thr = "thr"
77
IY = "IY"
8+
IZ = "IZ"
9+
iz = "iz"
810
anc = "anc"
911
Pn = "Pn"
1012
emiss = "emiss"
@@ -36,3 +38,5 @@ repare = "repare"
3638
easure = "easure"
3739
egative = "egative"
3840
agger = "agger"
41+
# Ruff rule code prefix (flake8-copyright)
42+
CPY = "CPY"

Cargo.lock

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

python/pecos-rslib-cuda/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "pecos-rslib-cuda"
3-
version = "0.8.0.dev7"
3+
version = "0.8.0.dev8"
44
description = "CUDA/cuQuantum Python bindings for PECOS quantum simulators (Rust implementation)."
55
authors = [
66
{name = "The PECOS Developers"},

python/pecos-rslib/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "pecos-rslib"
3-
version = "0.8.0.dev7"
3+
version = "0.8.0.dev8"
44
description = "Rust libary extensions for Python PECOS."
55
authors = [
66
{name = "The PECOS Developers"},

python/pecos-rslib/tests/test_array_methods.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
from pecos_rslib import Array, dtypes
77

8-
98
# ---------------------------------------------------------------------------
109
# copy()
1110
# ---------------------------------------------------------------------------

python/pecos-rslib/tests/test_graph.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
"""Tests for graph module (MWPM decoder)."""
1313

14-
1514
import pecos_rslib as pc
1615

1716

python/pecos-rslib/tests/test_phir_json_engine.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
Representation) and the Rust-based quantum simulators, ensuring proper execution of quantum programs and
66
correct simulation results.
77
"""
8+
89
import json
910

1011
import pytest

python/quantum-pecos/pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ build-backend = "hatchling.build"
1515

1616
[project]
1717
name = "quantum-pecos"
18-
version = "0.8.0.dev7"
18+
version = "0.8.0.dev8"
1919
authors = [
2020
{name = "The PECOS Developers"},
2121
]
@@ -28,7 +28,7 @@ requires-python = ">=3.10"
2828
license = { file = "LICENSE"}
2929
keywords = ["quantum", "QEC", "simulation", "PECOS"]
3030
dependencies = [
31-
"pecos-rslib==0.8.0.dev7",
31+
"pecos-rslib==0.8.0.dev8",
3232
"phir>=0.3.3",
3333
"networkx>=2.1.0",
3434
"guppylang>=0.21.6",
@@ -74,7 +74,7 @@ all = [
7474
# These packages work with uv/pip once CUDA toolkit is installed.
7575
# Note: CUDA packages require Python 3.11+ due to cuquantum-python-cu13 requirements
7676
cuda = [
77-
"pecos-rslib-cuda==0.8.0.dev7",
77+
"pecos-rslib-cuda==0.8.0.dev8",
7878
"cupy-cuda13x>=13.0.0; python_version >= '3.11'", # Use cupy-cuda12x for CUDA 12
7979
"cuquantum-python-cu13>=25.3.0; python_version >= '3.11'", # Use cuquantum-python-cu12 for CUDA 12
8080
"pytket-cutensornet>=0.12.0; python_version >= '3.11'",

python/quantum-pecos/src/pecos/simulators/cointoss/state.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
making it useful for debugging classical logic paths and testing error correction protocols with random noise.
1717
"""
1818

19-
2019
from __future__ import annotations
2120

2221
from typing import TYPE_CHECKING

0 commit comments

Comments
 (0)