Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ jobs:
python-version: ${{ matrix.python-version }}

- name: Add requirements
run: python -m pip install --upgrade cmake>=3.12 ninja pytest flake8 pytest-cov setuptools
run: python -m pip install --upgrade cmake>=3.12 ninja pytest ruff pytest-cov setuptools

- name: Build and install
run: python -m pip install --verbose -e .
Expand All @@ -235,8 +235,11 @@ jobs:
- name: Test with stim and rustworkx using coverage
run: python -m pytest tests --cov=./src/pymatching --cov-report term

- name: flake8
run: flake8 ./src ./tests
- name: ruff lint
run: ruff check src tests

- name: ruff format
run: ruff format --check src tests

build_docs:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -272,7 +275,7 @@ jobs:
with:
python-version: '3.x'
- name: Add requirements
run: python -m pip install --upgrade cmake>=3.12 ninja pytest flake8 pytest-cov stim rustworkx
run: python -m pip install --upgrade cmake>=3.12 ninja pytest ruff pytest-cov stim rustworkx
- name: Build and install
run: pip install --verbose -e .
- name: Run tests and collect coverage
Expand Down
4 changes: 2 additions & 2 deletions src/pymatching/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from pymatching._cpp_pymatching import (randomize, set_seed, rand_float) # noqa
from pymatching._cpp_pymatching import randomize, set_seed, rand_float # noqa
from pymatching._cpp_pymatching import main as cli # noqa
from pymatching.matching import Matching # noqa
from pymatching._version import __version__
from pymatching._version import __version__ as __version__ # noqa

randomize() # Set random seed using std::random_device
2 changes: 1 addition & 1 deletion src/pymatching/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "2.3.1" # pragma no cover
__version__ = "2.3.1" # pragma no cover
Loading
Loading