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
21 changes: 13 additions & 8 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ jobs:
test:
needs: get-environments
permissions:
id-token: write # for codecov OIDC
contents: read
id-token: write # for codecov OIDC
contents: read

strategy:
fail-fast: false
Expand All @@ -62,11 +62,16 @@ jobs:
include:
# PyPI numpy/scipy wheels for macOS 14+ link Apple Accelerate, unlike conda-forge's in the krylov job.
- os: macos-latest
env: {name: hatch-test.py3.12-stable, label: "hatch-test.py3.12-stable (macOS, Accelerate)", python: "3.12"}
env:
{
name: hatch-test.py3.12-stable,
label: "hatch-test.py3.12-stable (macOS, Accelerate)",
python: "3.12",
}

name: ${{ matrix.env.label }}
runs-on: ${{ matrix.os }}
continue-on-error: ${{ contains(matrix.env.name, 'pre') }} # make "all-green" pass even if pre-release job fails
continue-on-error: ${{ contains(matrix.env.name, 'pre') }} # make "all-green" pass even if pre-release job fails

steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
Expand Down Expand Up @@ -104,7 +109,7 @@ jobs:
# conda-forge. No lockfile, so new petsc4py/slepc4py releases are tested as they appear.
test-krylov:
permissions:
id-token: write # for codecov OIDC
id-token: write # for codecov OIDC
contents: read
strategy:
fail-fast: false
Expand Down Expand Up @@ -145,6 +150,6 @@ jobs:
- test-krylov
runs-on: ubuntu-latest
steps:
- uses: re-actors/alls-green@b5b5b37504aa4183270bd3d855c52a67f212be35 # v1.3.0
with:
jobs: ${{ toJSON(needs) }}
- uses: re-actors/alls-green@b5b5b37504aa4183270bd3d855c52a67f212be35 # v1.3.0
with:
jobs: ${{ toJSON(needs) }}
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ default_stages:
minimum_pre_commit_version: 2.16.0
repos:
- repo: https://github.com/biomejs/pre-commit
rev: v2.5.3
rev: v2.6.8
hooks:
- id: biome-format
exclude: ^\.cruft\.json$ # inconsistent indentation with cruft - file never to be modified manually.
- repo: https://github.com/tox-dev/pyproject-fmt
rev: v2.25.3
rev: v2.31.3
hooks:
- id: pyproject-fmt
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.21
rev: v0.17.6
hooks:
- id: ruff-check
types_or: [python, pyi, jupyter]
Expand Down Expand Up @@ -44,7 +44,7 @@ repos:
args: [--assume-in-merge]

- repo: https://github.com/zizmorcore/zizmor-pre-commit
rev: v1.24.1
rev: v1.33.1
hooks:
- id: zizmor
args: [--no-progress, --fix]
3 changes: 1 addition & 2 deletions docs/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ the [scientific Python tutorials][], or the [scanpy developer guide][].
[scientific Python tutorials]: https://learn.scientific-python.org/development/tutorials/
[scanpy developer guide]: https://scanpy.scverse.org/page/dev/

:::{tip} The *hatch* project manager
:::{tip} The _hatch_ project manager

We highly recommend to familiarize yourself with [`hatch`][hatch].
Hatch is a Python project manager that
Expand Down Expand Up @@ -101,7 +101,6 @@ hatch env find hatch-test.py3.14-stable

and manually point it to the python binary.


::::

::::{tab-item} uv
Expand Down
8 changes: 6 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ requires = [ "hatch-vcs", "hatchling" ]

[project]
name = "pygpcca"
description = "Generalized Perron Cluster Cluster Analysis program to coarse-grain reversible and non-reversible Markov state models."
description = """\
Generalized Perron Cluster Cluster Analysis program to coarse-grain reversible and non-reversible Markov state \
models.\
"""
readme = "README.md"
keywords = [
"cellular dynamics",
Expand Down Expand Up @@ -48,6 +51,7 @@ classifiers = [
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: 3.15",
"Topic :: Scientific/Engineering :: Mathematics",
"Typing :: Typed",
]
Expand Down Expand Up @@ -198,11 +202,11 @@ strict = true
testpaths = [ "tests" ]

[tool.coverage]
run.source = [ "pygpcca" ]
run.omit = [
"**/test_*.py",
]
run.patch = [ "subprocess" ]
run.source = [ "pygpcca" ]

[tool.cruft]
skip = [
Expand Down
Loading