Skip to content

Commit

Permalink
feat(config): deprecate skip_empty_plots
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrugman committed Aug 30, 2022
1 parent d42b967 commit 75ba0c1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions popmon/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@

import pandas as pd
from histogrammar.dfinterface.make_histograms import get_time_axes
from pydantic import BaseModel
from pydantic import BaseModel, BaseSettings
from pydantic.class_validators import validator
from pydantic.env_settings import BaseSettings
from typing_extensions import Literal

# Global configuration for the joblib parallelization. Could be used to change the number of jobs, and/or change
Expand Down Expand Up @@ -184,7 +183,9 @@ class Report(ValidatedBaseModel):
@validator("skip_empty_plots")
def skip_empty_plots_deprecated(cls, v):
if v:
warnings.warn("The 'skip_empty_plots' parameter is deprecated and will be removed in the next release.")
warnings.warn(
"The 'skip_empty_plots' parameter is deprecated and will be removed in the next release."
)
return v

last_n: int = 0
Expand Down

0 comments on commit 75ba0c1

Please sign in to comment.