Skip to content

Commit a6358ec

Browse files
authored
Merge pull request #44 from Point72/dependabot/pip/ruff-gte-0.6-and-lt-0.10
Update ruff requirement from <0.9,>=0.6 to >=0.6,<0.10
2 parents 82d929a + faea4af commit a6358ec

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

ccflow/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ def __getitem__(self, item) -> ModelType:
454454
registry = self._models[registry_name]
455455
except KeyError:
456456
raise KeyError(
457-
f"No sub-registry found by the name '{registry_name}' in registry '{self._debug_name}' " f"while looking up model '{item}'"
457+
f"No sub-registry found by the name '{registry_name}' in registry '{self._debug_name}' while looking up model '{item}'"
458458
)
459459
return registry.__getitem__(name)
460460
else:

ccflow/callable.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def _check_signature(self):
110110
type_deps_arg = _cached_signature(self.__class__.__deps__).parameters["context"].annotation
111111
if type_call_arg is not type_deps_arg:
112112
err_msg_type_mismatch = (
113-
f"The type of the context accepted by __deps__ {type_deps_arg} " f"must match that accepted by __call__ {type_call_arg}!"
113+
f"The type of the context accepted by __deps__ {type_deps_arg} must match that accepted by __call__ {type_call_arg}!"
114114
)
115115
raise ValueError(err_msg_type_mismatch)
116116

ccflow/tests/exttypes/test_polars.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def test_expression_deserialization(self):
2323

2424
def test_expression_complex(self):
2525
expression = PolarsExpression.validate(
26-
"col('Col1') " "+ (sp.linalg.det(numpy.eye(2, dtype=int)) - 1 ) * math.pi * c('Col2') " "+ polars.col('Col2')"
26+
"col('Col1') + (sp.linalg.det(numpy.eye(2, dtype=int)) - 1 ) * math.pi * c('Col2') + polars.col('Col2')"
2727
)
2828
expected_result = pl.col("Col1") + (scipy.linalg.det(np.eye(2, dtype=int)) - 1) * math.pi * pl.col("Col2") + pl.col("Col2")
2929

ccflow/tests/test_base_registry.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ def test_bad_class_error(self):
507507
}
508508
)
509509
r = ModelRegistry(name="test")
510-
msg = "Error locating target 'ccflow.tests.test_base_registry.BadClass', " "set env var HYDRA_FULL_ERROR=1 to see chained exception.\n"
510+
msg = "Error locating target 'ccflow.tests.test_base_registry.BadClass', set env var HYDRA_FULL_ERROR=1 to see chained exception.\n"
511511
"full_key: foo"
512512
with self.assertRaises(InstantiationException, msg=msg):
513513
r.load_config(cfg)
@@ -524,7 +524,7 @@ def test_validation_error(self):
524524
)
525525
r = ModelRegistry(name="test")
526526
msg = "Error in call to target 'ccflow.tests.test_base_registry.MyTestModel':\n"
527-
("ValidationError(model='MyTestModel', errors=[{'loc': ('b',), " "'msg': 'value is not a valid float', 'type': 'type_error.float'}])\n")
527+
("ValidationError(model='MyTestModel', errors=[{'loc': ('b',), 'msg': 'value is not a valid float', 'type': 'type_error.float'}])\n")
528528
"full_key: foo"
529529
with self.assertRaises(InstantiationException, msg=msg):
530530
r.load_config(cfg)

ccflow/tests/test_base_serialize.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def test_serialization_nested_subclass(self):
150150
self._check_serialization(NestedModel(a=ChildModel(field1=0, field2=10)))
151151

152152
def test_from_str_serialization(self):
153-
serialized = '{"_target_": "ccflow.tests.test_base_serialize.ChildModel", ' '"field1": 9, "field2": 4}'
153+
serialized = '{"_target_": "ccflow.tests.test_base_serialize.ChildModel", "field1": 9, "field2": 4}'
154154
deserialized = BaseModel.model_validate_json(serialized)
155155
self.assertEqual(deserialized, ChildModel(field1=9, field2=4))
156156

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ develop = [
6666
"codespell>=2.3,<2.4",
6767
"hatchling",
6868
"mdformat>=0.7.18,<0.8",
69-
"ruff>=0.6,<0.9",
69+
"ruff>=0.6,<0.10",
7070
"toml",
7171
"twine",
7272
"wheel",

0 commit comments

Comments
 (0)