Skip to content

Commit

Permalink
chore: Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
anth-volk committed Oct 24, 2024
1 parent 65455ec commit b29e752
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion microdf/chart_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ def currency_format(currency="USD", suffix=""):
import matplotlib as mpl
except ImportError:
raise ImportError(
"The function you've called requires extra dependencies. Please install microdf with the 'charts' extra by running 'pip install microdf[charts]'"
"The function you've called requires extra dependencies. " +
"Please install microdf with the 'charts' extra by running " +
"'pip install microdf[charts]'"
)

prefix = {"USD": "$", "GBP": "£"}[currency]
Expand Down
4 changes: 3 additions & 1 deletion microdf/charts.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ def quantile_pct_chg_plot(df1, df2, col1, col2, w1=None, w2=None, q=None):
import matplotlib.pyplot as plt
except ImportError:
raise ImportError(
"The function you've called requires extra dependencies. Please install microdf with the 'charts' extra by running 'pip install microdf[charts]'"
"The function you've called requires extra dependencies. " +
"Please install microdf with the 'charts' extra by running " +
"'pip install microdf[charts]'"
)

if q is None:
Expand Down
4 changes: 3 additions & 1 deletion microdf/style.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ def set_plot_style(dpi: int = DPI):
import matplotlib.font_manager as fm
except ImportError:
raise ImportError(
"The function you've called requires extra dependencies. Please install microdf with the 'charts' extra by running 'pip install microdf[charts]'"
"The function you've called requires extra dependencies. " +
"Please install microdf with the 'charts' extra by running " +
"'pip install microdf[charts]'"
)

sns.set_style("white")
Expand Down

0 comments on commit b29e752

Please sign in to comment.