Skip to content

Commit eb2e5c6

Browse files
committed
remove noqa, make format
1 parent 021d0a2 commit eb2e5c6

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

stac_model/examples.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def eurosat_resnet() -> ItemMLModelExtension:
7070
type="z-score",
7171
mean=mean,
7272
stddev=stddev,
73-
)
73+
),
7474
)
7575
for mean, stddev in zip(stats_mean, stats_stddev, strict=False)
7676
]

stac_model/input.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ def validate_dimensions(self) -> Self:
1818
raise ValueError("Dimension order and shape must be of equal length for corresponding indices.")
1919
return self
2020

21+
2122
class ValueScalingClipMin(MLMBaseModel):
2223
type: Literal["clip-min"] = "clip-min"
2324
minimum: Number
@@ -71,7 +72,7 @@ class ValueScalingProcessingExpression(ProcessingExpression):
7172
ValueScalingScale,
7273
ValueScalingProcessingExpression,
7374
]
74-
] # noqa: E501
75+
]
7576

7677
ResizeType: TypeAlias = (
7778
Literal[
@@ -87,7 +88,7 @@ class ValueScalingProcessingExpression(ProcessingExpression):
8788
"wrap-inverse-map",
8889
]
8990
| None
90-
) # noqa: E501
91+
)
9192

9293

9394
class ModelBand(MLMBaseModel):

tests/test_schema.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,13 @@ def test_mlm_no_input_allowed_but_explicit_empty_array_required(
122122
([{"type": "z-score", "mean": 1, "stddev": 2, "minimum": 1, "maximum": 2}], True), # extra must be ignored
123123
([{"type": "processing"}], False),
124124
([{"type": "processing", "format": "test", "expression": "test"}], True),
125-
([
126-
{"type": "processing", "format": "test", "expression": "test"},
127-
{"type": "min-max", "minimum": 1, "maximum": 2}
128-
], True),
125+
(
126+
[
127+
{"type": "processing", "format": "test", "expression": "test"},
128+
{"type": "min-max", "minimum": 1, "maximum": 2},
129+
],
130+
True,
131+
),
129132
],
130133
)
131134
def test_mlm_input_scaling_combination(

0 commit comments

Comments
 (0)