Skip to content

Commit

Permalink
More linting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
cdholmes committed Sep 9, 2024
1 parent 61502c9 commit c59088e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/metpy/plots/skewt.py
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,7 @@ def __init__(self, *args, rotation=0, aspect='auto', **kwargs):
Source figure to use for plotting. If none is given, a new
:class:`matplotlib.figure.Figure` instance will be created.
rotation : float or int, optional
This value is ignored for Stüve plots (included only for compatibility with SkewT)
This value is ignored for Stuve plots, but included for compatibility with SkewT
subplot : tuple[int, int, int] or `matplotlib.gridspec.SubplotSpec` instance, optional
Controls the size/position of the created subplot. This allows creating
the skewT as part of a collection of subplots. If subplot is a tuple, it
Expand All @@ -790,11 +790,13 @@ def __init__(self, *args, rotation=0, aspect='auto', **kwargs):
super().__init__(*args, **kwargs, rotation=0, aspect=aspect)

Check warning on line 790 in src/metpy/plots/skewt.py

View check run for this annotation

Codecov / codecov/patch

src/metpy/plots/skewt.py#L790

Added line #L790 was not covered by tests

# Forward and inverse functions for Stuve pressure coordinate scaling
def f(p): return p**0.286
def g(p): return p**( 1 / 0.286 )
def f(p):

Check failure on line 793 in src/metpy/plots/skewt.py

View workflow job for this annotation

GitHub Actions / Run Lint Tools

Ruff (W291)

src/metpy/plots/skewt.py:793:18: W291 Trailing whitespace
return p**0.286
def g(p):

Check failure on line 795 in src/metpy/plots/skewt.py

View workflow job for this annotation

GitHub Actions / Run Lint Tools

Ruff (W291)

src/metpy/plots/skewt.py:795:18: W291 Trailing whitespace
return p**(1 / 0.286)

Check warning on line 796 in src/metpy/plots/skewt.py

View check run for this annotation

Codecov / codecov/patch

src/metpy/plots/skewt.py#L793-L796

Added lines #L793 - L796 were not covered by tests

# Set the yaxis as Stuve
self.ax.set_yscale('function',functions=(f, g))
self.ax.set_yscale('function', functions=(f, g))

Check warning on line 799 in src/metpy/plots/skewt.py

View check run for this annotation

Codecov / codecov/patch

src/metpy/plots/skewt.py#L799

Added line #L799 was not covered by tests


@exporter.export
Expand Down

0 comments on commit c59088e

Please sign in to comment.