File tree Expand file tree Collapse file tree 2 files changed +15
-4
lines changed
Expand file tree Collapse file tree 2 files changed +15
-4
lines changed Original file line number Diff line number Diff line change 2121
2222import pandas as pd
2323from histogrammar .dfinterface .make_histograms import get_time_axes
24- from pydantic import BaseModel , BaseSettings
24+ from pydantic import BaseModel
25+ from pydantic_settings import BaseSettings
2526from typing_extensions import Literal
2627
2728# Global configuration for the joblib parallelization. Could be used to change the number of jobs, and/or change
3233
3334class ValidatedSettings (BaseSettings ):
3435 class Config :
35- validate_all = True
36+ validate_default = True
3637 validate_assignment = True
3738
3839
Original file line number Diff line number Diff line change @@ -31,8 +31,10 @@ dependencies = [
3131 " plotly>=5.8.0" ,
3232 " joblib>=0.14.0" ,
3333 " htmlmin" ,
34- " pydantic" ,
35- " typing_extensions"
34+ " pydantic>=2" ,
35+ " pydantic-settings" ,
36+ " typing_extensions" ,
37+ " tomli >= 1.1.0 ; python_version < '3.11'"
3638]
3739classifiers = [
3840 " Programming Language :: Python :: 3" ,
@@ -105,6 +107,10 @@ ignore = [
105107 " TRY003" ,
106108 " E501" ,
107109 " DTZ" ,
110+ " PERF203" , # `try`-`except` within a loop incurs performance overhead
111+
112+ # False positive
113+ " PERF401" , # Use a list comprehension to create a transformed list
108114
109115 # Prefer autofix
110116 " PD011" , # .to_numpy() instead of values
@@ -153,6 +159,10 @@ ignore = [
153159 " INP001" ,
154160]
155161
162+ "popmon/config.py" = [
163+ " RUF012" , # Mutable class attributes should be annotated with `typing.ClassVar`
164+ ]
165+
156166# Notebooks & NBQA
157167"popmon/notebooks/*" = [
158168 # Imports cannot be checked properly with NBQA
You can’t perform that action at this time.
0 commit comments