From d0b3ae1b7fd9c3623bf2fe578097b238ad876ffc Mon Sep 17 00:00:00 2001 From: Paul Hobson Date: Fri, 9 Oct 2026 06:58:26 -0700 Subject: [PATCH 1/3] fix basex -> base in example notebooks closes #82 --- docs/tutorial/getting_started.ipynb | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/docs/tutorial/getting_started.ipynb b/docs/tutorial/getting_started.ipynb index f701168..6593bd7 100644 --- a/docs/tutorial/getting_started.ipynb +++ b/docs/tutorial/getting_started.ipynb @@ -115,7 +115,7 @@ "ax1.set_xlabel(\"Base 10\")\n", "ax1.set_yticks([])\n", "\n", - "ax2.set_xscale(\"log\", basex=2)\n", + "ax2.set_xscale(\"log\", base=2)\n", "ax2.set_xlim(left=2**-3, right=2**3)\n", "ax2.set_xlabel(\"Base 2\")\n", "ax2.set_yticks([])\n", @@ -319,11 +319,15 @@ }, { "cell_type": "raw", - "metadata": {}, + "metadata": { + "vscode": { + "languageId": "raw" + } + }, "source": [ ".. note::\n", " The percentile and probability axes are plotted against the\n", - " same values. The difference is only that \"percentiles\" \n", + " same values. The difference is only that \"percentiles\"\n", " are plotted on a linear scale." ] }, From a2e85daa8cad5e0c4f4497fb84d965a6260a7ae7 Mon Sep 17 00:00:00 2001 From: Paul Hobson Date: Fri, 9 Oct 2026 07:14:04 -0700 Subject: [PATCH 2/3] clarify that the `dist` is ignored in pp pplots closes #64 --- probscale/viz.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/probscale/viz.py b/probscale/viz.py index 84c90d0..d7b0cf4 100644 --- a/probscale/viz.py +++ b/probscale/viz.py @@ -72,6 +72,9 @@ def probplot( specified, a minimal implementation of the standard normal distribution will be used. + .. note:: + This parameter is ignore when ``plottype="pp"``. + probax : string, optional (default = 'x') The axis ('x' or 'y') that will serve as the probability (or quantile) axis. From f16dad522622dc2afd46dd415e675ebe7041d122 Mon Sep 17 00:00:00 2001 From: Thomas A Caswell Date: Fri, 9 Oct 2026 07:21:58 -0700 Subject: [PATCH 3/3] harden CI/GHAs --- .github/dependabot.yml | 6 ++++++ .github/workflows/python-publish.yml | 6 +++++- .github/workflows/python-runlinter.yml | 6 +++++- .github/workflows/python-runtests-all.yml | 6 +++++- 4 files changed, 21 insertions(+), 3 deletions(-) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..5ace460 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,6 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 132f43b..6b58618 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -2,6 +2,8 @@ # For more information see: https://docs.astral.sh/uv/guides/publish/ name: Publish Python Package +permissions: + contents: read on: release: @@ -14,6 +16,8 @@ jobs: steps: - uses: actions/checkout@v4 + with: + persist-credentials: false - name: Install uv uses: astral-sh/setup-uv@v6 - name: Build @@ -22,4 +26,4 @@ jobs: env: UV_PUBLISH_USERNAME: ${{ secrets.PMH_PYPI_USER }} UV_PUBLISH_PASSWORD: ${{ secrets.PMH_PYPI_PASS }} - run: uv publish \ No newline at end of file + run: uv publish diff --git a/.github/workflows/python-runlinter.yml b/.github/workflows/python-runlinter.yml index 3748a1c..952111e 100644 --- a/.github/workflows/python-runlinter.yml +++ b/.github/workflows/python-runlinter.yml @@ -2,6 +2,8 @@ # For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions name: Lint with flake8 +permissions: + contents: read on: push: @@ -15,6 +17,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + with: + persist-credentials: false - name: Install uv uses: astral-sh/setup-uv@v6 with: @@ -24,4 +28,4 @@ jobs: # stop the build if there are Python syntax errors or undefined names uvx flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics --exclude .git,docs/* # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide - uvx flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics \ No newline at end of file + uvx flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics diff --git a/.github/workflows/python-runtests-all.yml b/.github/workflows/python-runtests-all.yml index af1f694..06f87d2 100644 --- a/.github/workflows/python-runtests-all.yml +++ b/.github/workflows/python-runtests-all.yml @@ -2,6 +2,8 @@ # For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions name: Run units test (w/ img comps) +permissions: + contents: read on: push: @@ -19,6 +21,8 @@ jobs: steps: - uses: actions/checkout@v4 + with: + persist-credentials: false - name: Set up Python ${{ matrix.python-version }} and uv uses: astral-sh/setup-uv@v6 with: @@ -28,4 +32,4 @@ jobs: - name: Test with pytest run: | export MPL_IMGCOMP_TOLERANCE=20 - uv run pytest --mpl \ No newline at end of file + uv run pytest --mpl