diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index a2cc5d2..c421132 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -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 @@ -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 @@ -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 @@ -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) }} diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 284d8e8..aa969b1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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] @@ -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] diff --git a/docs/contributing.md b/docs/contributing.md index 33afd7d..cdeb4e8 100644 --- a/docs/contributing.md +++ b/docs/contributing.md @@ -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 @@ -101,7 +101,6 @@ hatch env find hatch-test.py3.14-stable and manually point it to the python binary. - :::: ::::{tab-item} uv diff --git a/pyproject.toml b/pyproject.toml index 641fe4d..88df44f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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", @@ -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", ] @@ -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 = [