Commit 79788d35 authored by Baber's avatar Baber
Browse files

nit

parent 87a59d41
from dataclasses import asdict, dataclass from dataclasses import asdict, dataclass
from inspect import getsource from inspect import getsource
from typing import Any, Callable, List, Optional, Union from typing import Any, Callable, Optional, Union
@dataclass @dataclass
class AggMetricConfig(dict): class AggMetricConfig(dict):
metric: Optional[str] = None metric: Optional[str] = None
aggregation: Optional[str] = "mean" aggregation: Optional[str] = "mean"
weight_by_size: Optional[str] = False weight_by_size: bool = False
# list of filter names which should be incorporated into the aggregated metric. # list of filter names which should be incorporated into the aggregated metric.
filter_list: Optional[Union[str, list]] = "none" filter_list: Optional[Union[str, list]] = "none"
...@@ -27,7 +27,7 @@ class GroupConfig(dict): ...@@ -27,7 +27,7 @@ class GroupConfig(dict):
group_alias: Optional[str] = None group_alias: Optional[str] = None
task: Optional[Union[str, list]] = None task: Optional[Union[str, list]] = None
aggregate_metric_list: Optional[ aggregate_metric_list: Optional[
Union[List[AggMetricConfig], AggMetricConfig, dict] Union[list[AggMetricConfig], AggMetricConfig, dict]
] = None ] = None
version: Optional[str] = None version: Optional[str] = None
metadata: Optional[dict] = ( metadata: Optional[dict] = (
......
...@@ -105,8 +105,8 @@ plugins.md034.enabled = false # no-bare-urls ...@@ -105,8 +105,8 @@ plugins.md034.enabled = false # no-bare-urls
[tool.ruff] [tool.ruff]
target-version = "py39" target-version = "py39"
extend-select = ["I", "UP", "E", "C419", "F", "B", "SIM"] lint.extend-select = ["I", "UP", "E", "C419", "F", "B", "SIM"]
ignore = ["E402", "E731", "E501", "E111", "E114", "E117"] lint.ignore = ["E402", "E731", "E501", "E111", "E114", "E117"]
[tool.ruff.lint.isort] [tool.ruff.lint.isort]
combine-as-imports = true combine-as-imports = true
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment