From 91763ad8e50c98f794587257d3809ca373b1d16f Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 1 Jun 2026 20:04:41 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/pre-commit/pre-commit-hooks: v4.3.0 → v6.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.3.0...v6.0.0) - [github.com/astral-sh/ruff-pre-commit: v0.1.6 → v0.15.15](https://github.com/astral-sh/ruff-pre-commit/compare/v0.1.6...v0.15.15) --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0afb84e..c939583 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,7 +3,7 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.3.0 + rev: v6.0.0 hooks: - id: end-of-file-fixer - id: trailing-whitespace @@ -13,7 +13,7 @@ repos: - id: check-toml - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.1.6 + rev: v0.15.15 hooks: # Run the linter. - id: ruff From 6a55e8f10974abfc948b7c7ee64ce8fd546acd38 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 1 Jun 2026 20:05:02 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- examples/examples.py | 2 +- mplstyles/cycler.py | 4 ++-- mplstyles/styles/journals/aps.mplstyle | 2 +- mplstyles/styles/journals/aps1.5.mplstyle | 2 +- mplstyles/styles/journals/aps2.mplstyle | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/examples.py b/examples/examples.py index 0987d61..0709483 100644 --- a/examples/examples.py +++ b/examples/examples.py @@ -7,7 +7,7 @@ import os.path import numpy as np import matplotlib.pyplot as plt -from mplstyles import get_mplstyles, init_mplstyles +from mplstyles import init_mplstyles init_mplstyles() diff --git a/mplstyles/cycler.py b/mplstyles/cycler.py index 0127cfc..025de35 100644 --- a/mplstyles/cycler.py +++ b/mplstyles/cycler.py @@ -21,7 +21,7 @@ "#898989", "#A2C8EC", "#FFBC79", - "#CFCFCF" + "#CFCFCF", ] color_cycles = { @@ -63,5 +63,5 @@ def show_greyscale(file): fig, ax = plt.subplots() ax.axes.get_xaxis().set_visible(False) ax.axes.get_yaxis().set_visible(False) - ax.imshow(np.asarray(image), cmap='gray', vmin=0, vmax=255) # noqa + ax.imshow(np.asarray(image), cmap="gray", vmin=0, vmax=255) # noqa return fig, ax diff --git a/mplstyles/styles/journals/aps.mplstyle b/mplstyles/styles/journals/aps.mplstyle index 02f6328..d39f45c 100644 --- a/mplstyles/styles/journals/aps.mplstyle +++ b/mplstyles/styles/journals/aps.mplstyle @@ -36,4 +36,4 @@ grid.linestyle: : # dashed # savefig.pad_inches : 0.01 # Use virtually all space when we specify figure dimensions # LaTeX packages -text.latex.preamble : \usepackage{amsmath} \usepackage{amssymb} \usepackage{sfmath} \ No newline at end of file +text.latex.preamble : \usepackage{amsmath} \usepackage{amssymb} \usepackage{sfmath} diff --git a/mplstyles/styles/journals/aps1.5.mplstyle b/mplstyles/styles/journals/aps1.5.mplstyle index 927b615..11785be 100644 --- a/mplstyles/styles/journals/aps1.5.mplstyle +++ b/mplstyles/styles/journals/aps1.5.mplstyle @@ -1 +1 @@ -figure.figsize: 5.063, 2.531 # figure size in inches (ratio=1.333) \ No newline at end of file +figure.figsize: 5.063, 2.531 # figure size in inches (ratio=1.333) diff --git a/mplstyles/styles/journals/aps2.mplstyle b/mplstyles/styles/journals/aps2.mplstyle index 7ef158f..d26bd34 100644 --- a/mplstyles/styles/journals/aps2.mplstyle +++ b/mplstyles/styles/journals/aps2.mplstyle @@ -1 +1 @@ -figure.figsize: 6.75, 2.531 # figure size in inches (ratio=1.333) \ No newline at end of file +figure.figsize: 6.75, 2.531 # figure size in inches (ratio=1.333)