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 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)