Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jul 4, 2023
1 parent a3fa19b commit 25d430f
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 21 deletions.
26 changes: 13 additions & 13 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,6 @@ requires = [
"wheel",
]

[tool.interrogate]
ignore-init-method = true
ignore-init-module = false
ignore-magic = false
ignore-semiprivate = false
ignore-private = false
ignore-module = false
fail-under = 70
exclude = ["setup.py", "docs", "tests"]
verbose = 1
quiet = false
color = true

[tool.ruff]
select = [
"A", # flake8-builtins
Expand All @@ -42,3 +29,16 @@ line-length = 79
"samples/example_pdf_by.py" = [
"T201",
]

[tool.interrogate]
ignore-init-method = true
ignore-init-module = false
ignore-magic = false
ignore-semiprivate = false
ignore-private = false
ignore-module = false
fail-under = 70
exclude = ["setup.py", "docs", "tests"]
verbose = 1
quiet = false
color = true
16 changes: 8 additions & 8 deletions windrose/windrose.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def set_radii_angle(self, **kwargs):
radii_labels = [fmt % r for r in radii]
# radii_labels[0] = "" # Removing label 0
self.set_rgrids(
radii=radii[1:], labels=radii_labels[1:], angle=self.radii_angle, **kwargs
radii=radii[1:], labels=radii_labels[1:], angle=self.radii_angle, **kwargs,
)

def _update(self):
Expand Down Expand Up @@ -456,7 +456,7 @@ def contour(self, direction, var, **kwargs):
"""
bins, nbins, nsector, colors, angles, kwargs = self._init_plot(
direction, var, **kwargs
direction, var, **kwargs,
)

# closing lines
Expand Down Expand Up @@ -524,7 +524,7 @@ def contourf(self, direction, var, **kwargs):
"""

bins, nbins, nsector, colors, angles, kwargs = self._init_plot(
direction, var, **kwargs
direction, var, **kwargs,
)
kwargs.pop("facecolor", None)
kwargs.pop("edgecolor", None)
Expand Down Expand Up @@ -602,7 +602,7 @@ def bar(self, direction, var, **kwargs):
"""

bins, nbins, nsector, colors, angles, kwargs = self._init_plot(
direction, var, **kwargs
direction, var, **kwargs,
)
kwargs.pop("facecolor", None)
edgecolor = kwargs.pop("edgecolor", None)
Expand Down Expand Up @@ -680,7 +680,7 @@ def box(self, direction, var, **kwargs):
"""

bins, nbins, nsector, colors, angles, kwargs = self._init_plot(
direction, var, **kwargs
direction, var, **kwargs,
)
kwargs.pop("facecolor", None)
edgecolor = kwargs.pop("edgecolor", None)
Expand Down Expand Up @@ -875,7 +875,7 @@ def wrpdf(


def wrscatter(
direction, var, ax=None, rmax=None, figsize=FIGSIZE_DEFAULT, *args, **kwargs
direction, var, ax=None, rmax=None, figsize=FIGSIZE_DEFAULT, *args, **kwargs,
):
"""
Draw scatter plot
Expand Down Expand Up @@ -957,7 +957,7 @@ def plot_windrose(
else:
direction = direction_or_df
return plot_windrose_np(
direction, var, kind=kind, by=by, rmax=rmax, ax=ax, **kwargs
direction, var, kind=kind, by=by, rmax=rmax, ax=ax, **kwargs,
)


Expand All @@ -975,7 +975,7 @@ def plot_windrose_df(
var = df[var_name].values
direction = df[direction_name].values
return plot_windrose_np(
direction, var, kind=kind, by=by, rmax=rmax, ax=ax, **kwargs
direction, var, kind=kind, by=by, rmax=rmax, ax=ax, **kwargs,
)


Expand Down

0 comments on commit 25d430f

Please sign in to comment.