From 285ec6f00f1e1f7c2dd48746de6a758818e5242a Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 6 Jan 2025 22:12:25 +0000 Subject: [PATCH 1/2] chore(deps): pre-commit.ci autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.7.4 → v0.8.6](https://github.com/astral-sh/ruff-pre-commit/compare/v0.7.4...v0.8.6) - [github.com/pre-commit/mirrors-mypy: v1.13.0 → v1.14.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.13.0...v1.14.1) --- .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 08130264..3d2a5290 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -18,7 +18,7 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: v0.7.4 + rev: v0.8.6 hooks: # Run the linter. - id: ruff @@ -27,7 +27,7 @@ repos: - id: ruff-format - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.13.0 + rev: v1.14.1 hooks: - id: mypy files: src From ec77c104ad52db492ee326bb2de35102e581644f Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 6 Jan 2025 22:15:15 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/mplhep/_deprecate.py | 2 +- src/mplhep/alice.py | 2 +- src/mplhep/atlas.py | 2 +- src/mplhep/cms.py | 2 +- src/mplhep/lhcb.py | 2 +- src/mplhep/styles/__init__.py | 14 +++++++------- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/mplhep/_deprecate.py b/src/mplhep/_deprecate.py index 5562f854..0d2b1945 100644 --- a/src/mplhep/_deprecate.py +++ b/src/mplhep/_deprecate.py @@ -71,10 +71,10 @@ class deprecated_dict(dict): """ __slots__ = ( - "message", "_already_warned", "_warn_once", "_warning", + "message", ) # no __dict__ - would be redundant def __init__( diff --git a/src/mplhep/alice.py b/src/mplhep/alice.py index 912db6c1..ebb745db 100644 --- a/src/mplhep/alice.py +++ b/src/mplhep/alice.py @@ -11,7 +11,7 @@ # Log styles from .styles import alice as style -__all__ = ("style", "lumitext") +__all__ = ("lumitext", "style") @docstring.copy(label_base.exp_text) diff --git a/src/mplhep/atlas.py b/src/mplhep/atlas.py index 6a1f8b86..04cb14d8 100644 --- a/src/mplhep/atlas.py +++ b/src/mplhep/atlas.py @@ -13,7 +13,7 @@ # Log styles from .styles import atlas as style -__all__ = ("style", "lumitext") +__all__ = ("lumitext", "style") @docstring.copy(label_base.exp_text) diff --git a/src/mplhep/cms.py b/src/mplhep/cms.py index acd8cf3b..0973b990 100644 --- a/src/mplhep/cms.py +++ b/src/mplhep/cms.py @@ -13,7 +13,7 @@ # import mplhep._deprecate as deprecate -__all__ = ("style", "lumitext") +__all__ = ("lumitext", "style") @docstring.copy(label_base.exp_text) diff --git a/src/mplhep/lhcb.py b/src/mplhep/lhcb.py index 191f1242..6b980fd0 100644 --- a/src/mplhep/lhcb.py +++ b/src/mplhep/lhcb.py @@ -28,7 +28,7 @@ from .label import lumitext from .styles import lhcb as style -__all__ = ("style", "lumitext", "label", "text") +__all__ = ("label", "lumitext", "style", "text") @docstring.copy(label_base.exp_text) diff --git a/src/mplhep/styles/__init__.py b/src/mplhep/styles/__init__.py index 3fbb764c..2b97a2f3 100644 --- a/src/mplhep/styles/__init__.py +++ b/src/mplhep/styles/__init__.py @@ -16,24 +16,24 @@ __all__ = ( "ALICE", "ATLAS", - "ATLASAlt", - "ATLASTex", "CMS", + "PLOTHIST", "ROOT", + "ATLASAlt", + "ATLASTex", "CMSTex", - "ROOTTex", "LHCb", "LHCb1", "LHCb2", "LHCbTex", "LHCbTex1", "LHCbTex2", - "PLOTHIST", - "set_style", - "use", + "ROOTTex", + "fabiola", "fira", "firamath", - "fabiola", + "set_style", + "use", )