Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 98a7c73

Browse files
[pre-commit.ci] pre-commit autoupdate (#546)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/psf/black-pre-commit-mirror: 25.12.0 → 26.1.0](psf/black-pre-commit-mirror@25.12.0...26.1.0) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 756c6de commit 98a7c73

50 files changed

Lines changed: 58 additions & 10 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ ci:
1111

1212
repos:
1313
- repo: https://github.com/psf/black-pre-commit-mirror
14-
rev: 25.12.0
14+
rev: 26.1.0
1515
hooks:
1616
- id: black

docs/sphinxext/custom_roles.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"""
33
Custom :rc: and :rcraw: roles for rc settings.
44
"""
5+
56
import os
67

78
from docutils import nodes

ultraplot/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"""
33
A succinct matplotlib wrapper for making beautiful, publication-quality graphics.
44
"""
5+
56
from __future__ import annotations
67

78
import sys

ultraplot/_lazy.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"""
33
Helpers for lazy attribute loading in :mod:`ultraplot`.
44
"""
5+
56
from __future__ import annotations
67

78
import ast

ultraplot/axes/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"""
33
The various axes classes used throughout ultraplot.
44
"""
5+
56
import matplotlib.projections as mproj
67

78
from ..internals import context

ultraplot/axes/base.py

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
The first-level axes subclass used for all ultraplot figures.
44
Implements basic shared functionality.
55
"""
6+
67
import copy
78
import inspect
89
import re
@@ -4191,8 +4192,8 @@ def _measure_text_overhang_axes(
41914192
renderer = axes.figure._get_renderer()
41924193
bbox = text.get_window_extent(renderer=renderer)
41934194
inv = axes.transAxes.inverted()
4194-
(x0, y0) = inv.transform((bbox.x0, bbox.y0))
4195-
(x1, y1) = inv.transform((bbox.x1, bbox.y1))
4195+
x0, y0 = inv.transform((bbox.x0, bbox.y0))
4196+
x1, y1 = inv.transform((bbox.x1, bbox.y1))
41964197
except Exception:
41974198
return None
41984199
left = max(0.0, -x0)
@@ -4218,8 +4219,8 @@ def _measure_ticklabel_overhang_axes(
42184219
if not label.get_visible() or not label.get_text():
42194220
continue
42204221
bbox = label.get_window_extent(renderer=renderer)
4221-
(x0, y0) = inv.transform((bbox.x0, bbox.y0))
4222-
(x1, y1) = inv.transform((bbox.x1, bbox.y1))
4222+
x0, y0 = inv.transform((bbox.x0, bbox.y0))
4223+
x1, y1 = inv.transform((bbox.x1, bbox.y1))
42234224
min_x = min(min_x, x0)
42244225
max_x = max(max_x, x1)
42254226
min_y = min(min_y, y0)
@@ -4595,11 +4596,11 @@ def _reflow_inset_colorbar_frame(
45954596
x1 = max(b.x1 for b in bboxes)
45964597
y1 = max(b.y1 for b in bboxes)
45974598
inv_parent = parent.transAxes.inverted()
4598-
(px0, py0) = inv_parent.transform((x0, y0))
4599-
(px1, py1) = inv_parent.transform((x1, y1))
4599+
px0, py0 = inv_parent.transform((x0, y0))
4600+
px1, py1 = inv_parent.transform((x1, y1))
46004601
cax_bbox = cax.get_window_extent(renderer=renderer)
4601-
(cx0, cy0) = inv_parent.transform((cax_bbox.x0, cax_bbox.y0))
4602-
(cx1, cy1) = inv_parent.transform((cax_bbox.x1, cax_bbox.y1))
4602+
cx0, cy0 = inv_parent.transform((cax_bbox.x0, cax_bbox.y0))
4603+
cx1, cy1 = inv_parent.transform((cax_bbox.x1, cax_bbox.y1))
46034604
px0, px1 = sorted((px0, px1))
46044605
py0, py1 = sorted((py0, py1))
46054606
cx0, cx1 = sorted((cx0, cx1))

ultraplot/axes/cartesian.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"""
33
The standard Cartesian axes used for most ultraplot figures.
44
"""
5+
56
import copy
67
import inspect
78
from dataclasses import dataclass, field

ultraplot/axes/container.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
around external axes classes, allowing them to be used within ultraplot's
77
figure system while maintaining their native functionality.
88
"""
9+
910
import matplotlib.axes as maxes
1011
import matplotlib.transforms as mtransforms
1112
from matplotlib import cbook, container

ultraplot/axes/geo.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"""
33
Axes filled with cartographic projections.
44
"""
5+
56
from __future__ import annotations
67

78
import copy

ultraplot/axes/plot.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
The second-level axes subclass used for all ultraplot figures.
44
Implements plotting method overrides.
55
"""
6+
67
import contextlib
78
import inspect
89
import itertools

0 commit comments

Comments
 (0)