Skip to content

Commit

Permalink
FMT: Fix new format fails
Browse files Browse the repository at this point in the history
  • Loading branch information
has2k1 committed Mar 4, 2024
1 parent a5a686f commit b661398
Show file tree
Hide file tree
Showing 21 changed files with 20 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ clean-test:
rm -fr tests/result_images/*

ruff:
ruff . $(args)
ruff check . $(args)

format:
ruff format . --check
Expand Down
1 change: 1 addition & 0 deletions doc/_config.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
This script is run by the Makefile before quarto_build
"""

import re
from importlib.metadata import version as get_version
from pathlib import Path
Expand Down
1 change: 1 addition & 0 deletions plotnine/_mpl/_plot_side_space.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
Axes position. This may fail if `Axes.adjustable` is `datalim` as well as
such cases as when left or right margin are affected by xlabel.
"""

from __future__ import annotations

from abc import ABC
Expand Down
1 change: 1 addition & 0 deletions plotnine/_mpl/_plotnine_tight_layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
Axes position. This may fail if `Axes.adjustable` is `datalim` as well as
such cases as when left or right margin are affected by xlabel.
"""

from __future__ import annotations

import typing
Expand Down
1 change: 1 addition & 0 deletions plotnine/_utils/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Little functions used all over the codebase
"""

from __future__ import annotations

import inspect
Expand Down
1 change: 1 addition & 0 deletions plotnine/coords/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Coordinates
"""

from .coord_cartesian import coord_cartesian
from .coord_fixed import coord_equal, coord_fixed
from .coord_flip import coord_flip
Expand Down
1 change: 1 addition & 0 deletions plotnine/data/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Plotnine Data
"""

from pathlib import Path

import pandas as pd
Expand Down
1 change: 1 addition & 0 deletions plotnine/facets/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Facets
"""

from .facet_grid import facet_grid
from .facet_null import facet_null
from .facet_wrap import facet_wrap
Expand Down
1 change: 1 addition & 0 deletions plotnine/iapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
Specifications for containers that will hold different kinds
of objects with data created when the plot is being built.
"""

from __future__ import annotations

import itertools
Expand Down
1 change: 1 addition & 0 deletions plotnine/mapping/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Aesthetic Mappings
"""

from ._env import Environment # noqa: F401
from .aes import aes
from .evaluation import after_scale, after_stat, stage
Expand Down
1 change: 1 addition & 0 deletions plotnine/positions/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Position Adjustments
"""

from .position_dodge import position_dodge
from .position_dodge2 import position_dodge2
from .position_fill import position_fill
Expand Down
1 change: 1 addition & 0 deletions plotnine/scales/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Scales
"""

# limits
from .limits import expand_limits, lims, xlim, ylim

Expand Down
1 change: 1 addition & 0 deletions plotnine/stats/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Statistics
"""

from .stat_bin import stat_bin
from .stat_bin_2d import stat_bin2d, stat_bin_2d
from .stat_bindot import stat_bindot
Expand Down
1 change: 1 addition & 0 deletions plotnine/stats/density.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
Credit: Jake VanderPlas for the original kde_* functions
https://jakevdp.github.io/blog/2013/12/01/kernel-density-estimation/
"""

from __future__ import annotations

import typing
Expand Down
1 change: 1 addition & 0 deletions plotnine/themes/elements/element_base.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Theme elements used to decorate the graph.
"""

from __future__ import annotations

from typing import TYPE_CHECKING
Expand Down
1 change: 1 addition & 0 deletions plotnine/themes/elements/element_rect.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Theme elements used to decorate the graph.
"""

from __future__ import annotations

from typing import TYPE_CHECKING
Expand Down
1 change: 1 addition & 0 deletions plotnine/themes/elements/element_text.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Theme elements used to decorate the graph.
"""

from __future__ import annotations

from contextlib import suppress
Expand Down
1 change: 1 addition & 0 deletions plotnine/themes/elements/margin.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Theme elements used to decorate the graph.
"""

from __future__ import annotations

from dataclasses import dataclass
Expand Down
1 change: 0 additions & 1 deletion plotnine/themes/seaborn_rcmod.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

"""Functions that alter the matplotlib rc dictionary on the fly."""


import functools

import matplotlib as _mpl
Expand Down
1 change: 1 addition & 0 deletions plotnine/themes/themeable.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
only to the axis.title. In matplotlib terms this means that a theme
that covers text also has to cover axis.title.
"""

from __future__ import annotations

from contextlib import suppress
Expand Down
1 change: 1 addition & 0 deletions tools/gha_check_semver.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
The output of this script should tell you whether to publish a release
and to what index.
"""

import os
import re
from pathlib import Path
Expand Down

0 comments on commit b661398

Please sign in to comment.