From b45488ecdad7d4c8a3e10843b0e86ac0318e9350 Mon Sep 17 00:00:00 2001 From: Olivier DEBAUCHE Date: Wed, 27 Nov 2024 07:24:12 +0100 Subject: [PATCH 01/32] Update .pre-commit-config.yaml Ruff upgrade from 0.4.7 -> 0.8.0 --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8943a32efc2..499551bc034 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.5.0 + rev: v5.0.0 hooks: - id: check-ast always_run: true @@ -80,7 +80,7 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: "v0.4.7" + rev: "v0.8.07" hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix, --show-fixes] From 2c366aa04b78af5fd52e65452c6a649aa3d11482 Mon Sep 17 00:00:00 2001 From: Olivier DEBAUCHE Date: Wed, 27 Nov 2024 07:31:07 +0100 Subject: [PATCH 02/32] Update .pre-commit-config.yaml typo --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 499551bc034..1ea4241cd88 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -80,7 +80,7 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: "v0.8.07" + rev: "v0.8.0" hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix, --show-fixes] From 09ca18ae6839da46f127c25c8580160bda9502cf Mon Sep 17 00:00:00 2001 From: Olivier DEBAUCHE Date: Sun, 1 Dec 2024 23:24:59 +0100 Subject: [PATCH 03/32] Update zmq_queue_test.py Fix E721 --- packages/syft/tests/syft/zmq_queue_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/syft/tests/syft/zmq_queue_test.py b/packages/syft/tests/syft/zmq_queue_test.py index a995d09dced..b87136d56d2 100644 --- a/packages/syft/tests/syft/zmq_queue_test.py +++ b/packages/syft/tests/syft/zmq_queue_test.py @@ -275,4 +275,4 @@ def test_zmq_client_serde(): deser = syft.deserialize(bytes_data, from_bytes=True) - assert type(deser) == type(client) + assert type(deser) is type(client) From 9cb10dee653bc87162b9ace6bca3bf55a349ee79 Mon Sep 17 00:00:00 2001 From: Olivier DEBAUCHE Date: Sun, 1 Dec 2024 23:27:11 +0100 Subject: [PATCH 04/32] Update user_test.py Fix E721 --- packages/syft/tests/syft/users/user_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/syft/tests/syft/users/user_test.py b/packages/syft/tests/syft/users/user_test.py index 4c727b4f1fe..a2f88d38a36 100644 --- a/packages/syft/tests/syft/users/user_test.py +++ b/packages/syft/tests/syft/users/user_test.py @@ -273,7 +273,7 @@ def test_guest_user_update_to_root_email_failed( def test_user_view_set_password(worker: Worker, root_client: DatasiteClient) -> None: change_ok = root_client.account.set_password("123", confirm=False) - assert type(change_ok) == SyftSuccess + assert type(change_ok) is SyftSuccess assert "Successfully" in change_ok.message email = root_client.account.email From 915bc3fa785b76561829fd010d97fcad2e0d0e88 Mon Sep 17 00:00:00 2001 From: Olivier DEBAUCHE Date: Sun, 1 Dec 2024 23:30:00 +0100 Subject: [PATCH 05/32] Update user_stash_test.py Fix E721 --- packages/syft/tests/syft/users/user_stash_test.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/syft/tests/syft/users/user_stash_test.py b/packages/syft/tests/syft/users/user_stash_test.py index 584e616d093..53f79a3dda4 100644 --- a/packages/syft/tests/syft/users/user_stash_test.py +++ b/packages/syft/tests/syft/users/user_stash_test.py @@ -74,7 +74,7 @@ def test_userstash_get_by_uid( assert result.is_err() exc = result.err() - assert type(exc) == NotFoundException + assert type(exc) is NotFoundException assert exc.public_message @@ -98,7 +98,7 @@ def test_userstash_get_by_email( exc = result.err() assert result.is_err() - assert type(exc) == NotFoundException + assert type(exc) is NotFoundException assert "not found" in exc.public_message @@ -130,7 +130,7 @@ def test_userstash_get_by_signing_key( exc = result.err() assert result.is_err() - assert type(exc) == NotFoundException + assert type(exc) is NotFoundException assert exc.public_message @@ -161,7 +161,7 @@ def test_userstash_get_by_verify_key( ) searched_user = result.err() assert result.is_err() - assert type(searched_user) == NotFoundException + assert type(searched_user) is NotFoundException assert searched_user.public_message From 2863e482eba0c5baab6e15f6137e69a54685fdce Mon Sep 17 00:00:00 2001 From: Olivier DEBAUCHE Date: Sun, 1 Dec 2024 23:31:24 +0100 Subject: [PATCH 06/32] Update numpy_functions_test.py Fix E721 --- packages/syft/tests/syft/serde/numpy_functions_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/syft/tests/syft/serde/numpy_functions_test.py b/packages/syft/tests/syft/serde/numpy_functions_test.py index 14a858f101e..75b5ec0d631 100644 --- a/packages/syft/tests/syft/serde/numpy_functions_test.py +++ b/packages/syft/tests/syft/serde/numpy_functions_test.py @@ -91,7 +91,7 @@ def test_numpy_functions(func, func_arguments, request): except Exception as e: assert ( - e == AttributeError + e is AttributeError ), f"Can not evaluate {func}({func_arguments}) with {e}" print(e) else: From dafdde1582652e72f1df6771b55b82fb4ad10c83 Mon Sep 17 00:00:00 2001 From: Olivier DEBAUCHE Date: Sun, 1 Dec 2024 23:32:37 +0100 Subject: [PATCH 07/32] Update mixed_policy_test.py Fix E721 --- packages/syft/tests/syft/policy/mixed_policy_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/syft/tests/syft/policy/mixed_policy_test.py b/packages/syft/tests/syft/policy/mixed_policy_test.py index fedb6bed14a..c60b2fedb95 100644 --- a/packages/syft/tests/syft/policy/mixed_policy_test.py +++ b/packages/syft/tests/syft/policy/mixed_policy_test.py @@ -37,7 +37,7 @@ def test_constant(worker) -> None: constant = create_constant.to_policy_rule("test") assert constant.val == 2 - assert constant.klass == int + assert constant.klass is int create_constant = CreatePolicyRuleConstant( val=root_client.api.services.test.test_query From 8ccba0b82272a89c9a4dd8547b2b5d04540154af Mon Sep 17 00:00:00 2001 From: Olivier DEBAUCHE Date: Sun, 1 Dec 2024 23:40:22 +0100 Subject: [PATCH 08/32] Update table.py Fix E721 --- packages/syft/src/syft/util/table.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/syft/src/syft/util/table.py b/packages/syft/src/syft/util/table.py index 25db3fb4552..06c0264cf77 100644 --- a/packages/syft/src/syft/util/table.py +++ b/packages/syft/src/syft/util/table.py @@ -22,14 +22,14 @@ def _syft_in_mro(self: Any, item: Any) -> bool: - if hasattr(type(item), "mro") and type(item) != type: + if hasattr(type(item), "mro") and type(item) is not type: # if unbound method, supply self if hasattr(type(item).mro, "__self__"): mro = type(item).mro() else: mro = type(item).mro(type(item)) # type: ignore - elif hasattr(item, "mro") and type(item) != type: + elif hasattr(item, "mro") and type(item) is not type: mro = item.mro() else: mro = str(self) # type: ignore @@ -98,7 +98,7 @@ def _create_table_rows( if id_ is not None and include_id: cols["id"].append({"value": str(id_), "type": "clipboard"}) - if type(item) == type: + if type(item) is type: t = full_name_with_qualname(item) else: try: From a305fdbfb3d60f6ded23a9f3aae98063ee7637bc Mon Sep 17 00:00:00 2001 From: Olivier DEBAUCHE Date: Sun, 1 Dec 2024 23:42:06 +0100 Subject: [PATCH 09/32] Update api.py Fix E721 --- packages/syft/src/syft/client/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/syft/src/syft/client/api.py b/packages/syft/src/syft/client/api.py index 85fe33545fa..2589b3e3cf1 100644 --- a/packages/syft/src/syft/client/api.py +++ b/packages/syft/src/syft/client/api.py @@ -1364,7 +1364,7 @@ def validate_callable_args_and_kwargs( _check_type(value, t) except ValueError: # TODO: fix this properly - if not (t == type(Any)): + if not (t is type(Any)): _type_str = getattr(t, "__name__", str(t)) raise SyftException( public_message=f"`{key}` must be of type `{_type_str}` not `{type(value).__name__}`" From 2c1cadaee3637a88761159aff6e1ba07d91391d6 Mon Sep 17 00:00:00 2001 From: Olivier DEBAUCHE Date: Sun, 1 Dec 2024 23:43:12 +0100 Subject: [PATCH 10/32] Update json_serde.py Fix E721 --- packages/syft/src/syft/serde/json_serde.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/syft/src/syft/serde/json_serde.py b/packages/syft/src/syft/serde/json_serde.py index ee86241716c..70b86f8b622 100644 --- a/packages/syft/src/syft/serde/json_serde.py +++ b/packages/syft/src/syft/serde/json_serde.py @@ -298,7 +298,7 @@ def _is_serializable_mapping(annotation: Any) -> bool: - the key type is str - the value type is serializable and not a Union """ - if get_origin(annotation) != dict: + if get_origin(annotation) is not dict: return False args = get_args(annotation) From ebf5e8f8415e2f13333e13412cf10b925f86719a Mon Sep 17 00:00:00 2001 From: Olivier DEBAUCHE Date: Sun, 1 Dec 2024 23:44:07 +0100 Subject: [PATCH 11/32] Update lib_service_registry.py Fix E721 --- packages/syft/src/syft/serde/lib_service_registry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/syft/src/syft/serde/lib_service_registry.py b/packages/syft/src/syft/serde/lib_service_registry.py index 517df6c643c..c50fb193b0d 100644 --- a/packages/syft/src/syft/serde/lib_service_registry.py +++ b/packages/syft/src/syft/serde/lib_service_registry.py @@ -199,7 +199,7 @@ def flatten(self) -> list[Self]: def isfunction(obj: Callable) -> bool: return ( inspect.isfunction(obj) - or type(obj) == numpy.ufunc + or type(obj) is numpy.ufunc or isinstance(obj, BuiltinFunctionType) ) From 9217f987f337a4a5ea6d0f33e00a8d3fa65c9e8b Mon Sep 17 00:00:00 2001 From: Olivier DEBAUCHE Date: Sun, 1 Dec 2024 23:45:24 +0100 Subject: [PATCH 12/32] Update action_types.py Fix E721 --- packages/syft/src/syft/service/action/action_types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/syft/src/syft/service/action/action_types.py b/packages/syft/src/syft/service/action/action_types.py index c7bd730d557..c79c35a6811 100644 --- a/packages/syft/src/syft/service/action/action_types.py +++ b/packages/syft/src/syft/service/action/action_types.py @@ -19,7 +19,7 @@ def action_type_for_type(obj_or_type: Any) -> type: """ if isinstance(obj_or_type, ActionDataEmpty): obj_or_type = obj_or_type.syft_internal_type - if type(obj_or_type) != type: + if type(obj_or_type) is not type: obj_or_type = type(obj_or_type) if obj_or_type not in action_types: From 8823b6e1b1c4affec2cddd79b1be35a4cbf61b95 Mon Sep 17 00:00:00 2001 From: Olivier DEBAUCHE Date: Sun, 1 Dec 2024 23:46:20 +0100 Subject: [PATCH 13/32] Update policy.py Fix E721 --- packages/syft/src/syft/service/policy/policy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/syft/src/syft/service/policy/policy.py b/packages/syft/src/syft/service/policy/policy.py index f89493c4c0b..62554639067 100644 --- a/packages/syft/src/syft/service/policy/policy.py +++ b/packages/syft/src/syft/service/policy/policy.py @@ -342,7 +342,7 @@ def is_owned( def is_met( self, context: AuthedServiceContext, action_object: ActionObject ) -> bool: - return type(action_object.syft_action_data) == self.type and self.is_owned( + return type(action_object.syft_action_data) is self.type and self.is_owned( context, action_object ) From 75ad37fb47fcae0a22f4631e2f773c55db1fe1d6 Mon Sep 17 00:00:00 2001 From: Olivier DEBAUCHE Date: Sun, 1 Dec 2024 23:47:31 +0100 Subject: [PATCH 14/32] Update request.py Fix E721 --- packages/syft/src/syft/service/request/request.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/syft/src/syft/service/request/request.py b/packages/syft/src/syft/service/request/request.py index ab07c7380f1..1e24569e683 100644 --- a/packages/syft/src/syft/service/request/request.py +++ b/packages/syft/src/syft/service/request/request.py @@ -974,7 +974,7 @@ def _deposit_result_l2( f"accept_by_depositing_result can only be run on {UserCodeStatusCollection} not " f"{user_code_status_change.linked_obj.object_type}" ) - if not type(user_code_status_change) == UserCodeStatusChange: + if not type(user_code_status_change) is UserCodeStatusChange: raise TypeError( f"accept_by_depositing_result can only be run on {UserCodeStatusChange} not " f"{type(user_code_status_change)}" From 9d750a1ebfaf5c62299da8696130c6be94464226 Mon Sep 17 00:00:00 2001 From: Olivier DEBAUCHE Date: Sun, 1 Dec 2024 23:52:42 +0100 Subject: [PATCH 15/32] Update api.py Lint --- packages/syft/src/syft/client/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/syft/src/syft/client/api.py b/packages/syft/src/syft/client/api.py index 2589b3e3cf1..29ff15e4246 100644 --- a/packages/syft/src/syft/client/api.py +++ b/packages/syft/src/syft/client/api.py @@ -1364,7 +1364,7 @@ def validate_callable_args_and_kwargs( _check_type(value, t) except ValueError: # TODO: fix this properly - if not (t is type(Any)): + if t is not type(Any): _type_str = getattr(t, "__name__", str(t)) raise SyftException( public_message=f"`{key}` must be of type `{_type_str}` not `{type(value).__name__}`" From 39c45616bd8e85d4258b1235bbff44fbe4a00dc7 Mon Sep 17 00:00:00 2001 From: Olivier DEBAUCHE Date: Sun, 1 Dec 2024 23:53:56 +0100 Subject: [PATCH 16/32] Update request.py Lint --- packages/syft/src/syft/service/request/request.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/syft/src/syft/service/request/request.py b/packages/syft/src/syft/service/request/request.py index 1e24569e683..6ca660affe2 100644 --- a/packages/syft/src/syft/service/request/request.py +++ b/packages/syft/src/syft/service/request/request.py @@ -974,7 +974,7 @@ def _deposit_result_l2( f"accept_by_depositing_result can only be run on {UserCodeStatusCollection} not " f"{user_code_status_change.linked_obj.object_type}" ) - if not type(user_code_status_change) is UserCodeStatusChange: + if type(user_code_status_change) is not UserCodeStatusChange: raise TypeError( f"accept_by_depositing_result can only be run on {UserCodeStatusChange} not " f"{type(user_code_status_change)}" From c876d60ace86605fe5a1b740c2a551a266a936ec Mon Sep 17 00:00:00 2001 From: Olivier DEBAUCHE Date: Sun, 1 Dec 2024 23:55:13 +0100 Subject: [PATCH 17/32] Update dataset.py Fix E721 --- packages/syft/src/syft/service/dataset/dataset.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/syft/src/syft/service/dataset/dataset.py b/packages/syft/src/syft/service/dataset/dataset.py index 185774fa86c..c9b8137aadf 100644 --- a/packages/syft/src/syft/service/dataset/dataset.py +++ b/packages/syft/src/syft/service/dataset/dataset.py @@ -306,7 +306,7 @@ def _is_action_data_empty(obj: Any) -> bool: def check_mock(data: Any, mock: Any) -> bool: - if type(data) == type(mock): + if type(data) is type(mock): return True return _is_action_data_empty(mock) or _is_action_data_empty(data) From ad939c6897de0f3c2e5bacef19c2738eeb80c3b7 Mon Sep 17 00:00:00 2001 From: Olivier DEBAUCHE Date: Sun, 1 Dec 2024 23:56:31 +0100 Subject: [PATCH 18/32] Update syft_object.py Fix E721 --- packages/syft/src/syft/types/syft_object.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/syft/src/syft/types/syft_object.py b/packages/syft/src/syft/types/syft_object.py index 7b30ffaa562..19862279c07 100644 --- a/packages/syft/src/syft/types/syft_object.py +++ b/packages/syft/src/syft/types/syft_object.py @@ -435,7 +435,7 @@ def refresh(self) -> None: new_object = api.services.migration._get_object( uid=self.id, object_type=type(self) ) - if type(new_object) == type(self): + if type(new_object) is type(self): self.__dict__.update(new_object.__dict__) except Exception as _: return From 822110b47d1a62adcdc93d1a54ed5a3d8f48b27a Mon Sep 17 00:00:00 2001 From: Olivier DEBAUCHE Date: Sun, 1 Dec 2024 23:57:56 +0100 Subject: [PATCH 19/32] Update dataset_service_test.py Fix E721 --- .../syft/tests/syft/service/dataset/dataset_service_test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/syft/tests/syft/service/dataset/dataset_service_test.py b/packages/syft/tests/syft/service/dataset/dataset_service_test.py index 4d73e35fa6f..680d72e3499 100644 --- a/packages/syft/tests/syft/service/dataset/dataset_service_test.py +++ b/packages/syft/tests/syft/service/dataset/dataset_service_test.py @@ -302,10 +302,10 @@ def test_upload_dataset_with_assets_of_different_data_types( res = root_datasite_client.upload_dataset(dataset) assert isinstance(res, SyftSuccess) assert len(root_datasite_client.api.services.dataset.get_all()) == 1 - assert type(root_datasite_client.datasets[0].assets[0].data) == type( + assert type(root_datasite_client.datasets[0].assets[0].data) is type( different_data_types ) - assert type(root_datasite_client.datasets[0].assets[0].mock) == type( + assert type(root_datasite_client.datasets[0].assets[0].mock) is type( different_data_types ) From 2a243b5dd68eca297dc76bf93f9af61567c898a1 Mon Sep 17 00:00:00 2001 From: Olivier DEBAUCHE Date: Sun, 1 Dec 2024 23:58:41 +0100 Subject: [PATCH 20/32] Update settings_service_test.py Fix E721 --- packages/syft/tests/syft/settings/settings_service_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/syft/tests/syft/settings/settings_service_test.py b/packages/syft/tests/syft/settings/settings_service_test.py index 7555aadd91e..3f6dd245065 100644 --- a/packages/syft/tests/syft/settings/settings_service_test.py +++ b/packages/syft/tests/syft/settings/settings_service_test.py @@ -322,7 +322,7 @@ def get_mock_client(faker, root_client, role): password=password, password_verify=password, ) - assert type(result) == UserView + assert type(result) is UserView guest_client = root_client.guest() return guest_client.login(email=email, password=password) From 5871bf011fc2870a1403c5c28bd124b1d71e50d2 Mon Sep 17 00:00:00 2001 From: Olivier DEBAUCHE Date: Mon, 2 Dec 2024 00:06:03 +0100 Subject: [PATCH 21/32] Update setup.cfg Security fix --- packages/syft/setup.cfg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/syft/setup.cfg b/packages/syft/setup.cfg index 89a67e4032c..34fe4088fea 100644 --- a/packages/syft/setup.cfg +++ b/packages/syft/setup.cfg @@ -43,9 +43,9 @@ syft = typeguard==4.1.5 typing_extensions==4.12.0 sherlock[filelock]==0.4.1 - uvicorn[standard]==0.30.0 + uvicorn[standard]==0.32.1 markdown==3.5.2 - fastapi==0.111.0 + fastapi==0.115.5 psutil==6.0.0 itables==1.7.1 argon2-cffi==23.1.0 From e2ff31c4c5c883293e9de3fb57da81f6a4104b89 Mon Sep 17 00:00:00 2001 From: Olivier DEBAUCHE Date: Mon, 2 Dec 2024 00:07:45 +0100 Subject: [PATCH 22/32] Update setup.cfg update ruff and bandit --- packages/syft/setup.cfg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/syft/setup.cfg b/packages/syft/setup.cfg index 34fe4088fea..4966aa34c31 100644 --- a/packages/syft/setup.cfg +++ b/packages/syft/setup.cfg @@ -97,13 +97,13 @@ data_science = dev = %(test_plugins)s %(telemetry)s - bandit==1.7.8 + bandit==1.7.9 debugpy==1.8.2 importlib-metadata==7.1.0 isort==5.13.2 mypy==1.10.0 pre-commit==3.7.1 - ruff==0.4.7 + ruff==0.8.0 safety>=2.4.0b2 aiosmtpd==1.4.6 From 01a011120bfa03d677d9aa6a25d81f3e716c19a5 Mon Sep 17 00:00:00 2001 From: Olivier DEBAUCHE Date: Mon, 2 Dec 2024 00:11:17 +0100 Subject: [PATCH 23/32] Update setup.cfg update dependencies --- packages/syft/setup.cfg | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/syft/setup.cfg b/packages/syft/setup.cfg index 4966aa34c31..e665202019a 100644 --- a/packages/syft/setup.cfg +++ b/packages/syft/setup.cfg @@ -87,9 +87,9 @@ exclude = [options.extras_require] data_science = - transformers==4.41.2 - opendp==0.9.2 - evaluate==0.4.2 + transformers==4.46.3 + opendp==0.11.1 + evaluate==0.4.3 recordlinkage==0.16 # backend.dockerfile installs torch separately, so update the version over there as well! torch==2.2.2 @@ -97,13 +97,13 @@ data_science = dev = %(test_plugins)s %(telemetry)s - bandit==1.7.9 - debugpy==1.8.2 - importlib-metadata==7.1.0 + bandit==1.8.0 + debugpy==1.8.9 + importlib-metadata==8.5.0 isort==5.13.2 mypy==1.10.0 - pre-commit==3.7.1 - ruff==0.8.0 + pre-commit==4.0.1 + ruff==0.8.1 safety>=2.4.0b2 aiosmtpd==1.4.6 From 8d9ca652a93ad40f0fc85efb92e5bdb9acf0c984 Mon Sep 17 00:00:00 2001 From: Olivier DEBAUCHE Date: Mon, 2 Dec 2024 00:12:58 +0100 Subject: [PATCH 24/32] Update .pre-commit-config.yaml update ruff verstion to 0.8.1 --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1ea4241cd88..581267f9999 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -80,7 +80,7 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: "v0.8.0" + rev: "v0.8.1" hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix, --show-fixes] From 224a8420a1f41182fa86d606bddf929dd772e0b4 Mon Sep 17 00:00:00 2001 From: Olivier DEBAUCHE Date: Mon, 2 Dec 2024 00:15:10 +0100 Subject: [PATCH 25/32] Update setup.cfg change importlib-metadata to version 8.4.0 --- packages/syft/setup.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/syft/setup.cfg b/packages/syft/setup.cfg index e665202019a..2fec1b4e53c 100644 --- a/packages/syft/setup.cfg +++ b/packages/syft/setup.cfg @@ -99,7 +99,7 @@ dev = %(telemetry)s bandit==1.8.0 debugpy==1.8.9 - importlib-metadata==8.5.0 + importlib-metadata==8.4.0 isort==5.13.2 mypy==1.10.0 pre-commit==4.0.1 From 18ed0b20716736daa59ffdc46bc6b994b19f0105 Mon Sep 17 00:00:00 2001 From: Olivier DEBAUCHE Date: Tue, 3 Dec 2024 17:14:33 +0100 Subject: [PATCH 26/32] Update requirements.txt --- packages/grid/enclave/attestation/requirements.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/grid/enclave/attestation/requirements.txt b/packages/grid/enclave/attestation/requirements.txt index bd5059ad68d..cf27409d552 100644 --- a/packages/grid/enclave/attestation/requirements.txt +++ b/packages/grid/enclave/attestation/requirements.txt @@ -1,3 +1,3 @@ -fastapi==0.110.0 +fastapi==0.115.5 loguru==0.7.2 -uvicorn[standard]==0.27.1 +uvicorn[standard]==0.32.1 From f7bb3b1faea209aafe52dd95b52d450bd3051538 Mon Sep 17 00:00:00 2001 From: Olivier DEBAUCHE Date: Tue, 3 Dec 2024 17:15:40 +0100 Subject: [PATCH 27/32] Update requirements.txt --- packages/grid/seaweedfs/requirements.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/grid/seaweedfs/requirements.txt b/packages/grid/seaweedfs/requirements.txt index c4ecc044267..d00285bc75f 100644 --- a/packages/grid/seaweedfs/requirements.txt +++ b/packages/grid/seaweedfs/requirements.txt @@ -1,4 +1,4 @@ -fastapi==0.110.0 +fastapi==0.115.5 pyyaml==6.0.1 supervisor==4.2.5 -uvicorn==0.27.1 +uvicorn==0.32.1 From 4ecb83c9623894d932cfa299864ea7f8564cba3a Mon Sep 17 00:00:00 2001 From: Olivier DEBAUCHE Date: Thu, 12 Dec 2024 21:52:29 +0100 Subject: [PATCH 28/32] Update .pre-commit-config.yaml update ruff from 0.8.1 to 0.8.3 --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 581267f9999..0e055b9ff13 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -80,7 +80,7 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: "v0.8.1" + rev: "v0.8.3" hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix, --show-fixes] From 8783fcb4efb88818065af1b69392a4f13ab8db2f Mon Sep 17 00:00:00 2001 From: Olivier DEBAUCHE Date: Thu, 12 Dec 2024 21:57:20 +0100 Subject: [PATCH 29/32] Update setup.cfg dependancies update --- packages/syft/setup.cfg | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/syft/setup.cfg b/packages/syft/setup.cfg index 2fec1b4e53c..04378f295df 100644 --- a/packages/syft/setup.cfg +++ b/packages/syft/setup.cfg @@ -39,13 +39,13 @@ syft = pyzmq>=23.2.1,<=25.1.1 requests==2.32.3 RestrictedPython==7.0 - tqdm==4.66.4 + tqdm==4.67.1 typeguard==4.1.5 - typing_extensions==4.12.0 + typing_extensions==4.12.2 sherlock[filelock]==0.4.1 uvicorn[standard]==0.32.1 markdown==3.5.2 - fastapi==0.115.5 + fastapi==0.115.6 psutil==6.0.0 itables==1.7.1 argon2-cffi==23.1.0 @@ -103,7 +103,7 @@ dev = isort==5.13.2 mypy==1.10.0 pre-commit==4.0.1 - ruff==0.8.1 + ruff==0.8.3 safety>=2.4.0b2 aiosmtpd==1.4.6 From b0d20ff385302283b87473ba175571d27c6baa45 Mon Sep 17 00:00:00 2001 From: Olivier DEBAUCHE Date: Thu, 12 Dec 2024 22:01:36 +0100 Subject: [PATCH 30/32] Update setup.cfg dependancies update --- packages/syft/setup.cfg | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/syft/setup.cfg b/packages/syft/setup.cfg index 04378f295df..7effd71d874 100644 --- a/packages/syft/setup.cfg +++ b/packages/syft/setup.cfg @@ -27,7 +27,7 @@ package_dir = syft = setuptools - bcrypt==4.1.2 + bcrypt==4.2.1 boto3==1.34.56 forbiddenfruit==0.1.4 packaging>=23.0 @@ -69,8 +69,8 @@ syft = psycopg[pool]==3.1.19 ipython<8.27.0 dynaconf==3.2.6 - sqlalchemy==2.0.32 - psycopg2-binary==2.9.9 + sqlalchemy==2.0.36 + psycopg2-binary==2.9.10 install_requires = %(syft)s @@ -87,7 +87,7 @@ exclude = [options.extras_require] data_science = - transformers==4.46.3 + transformers==4.47.0 opendp==0.11.1 evaluate==0.4.3 recordlinkage==0.16 From d69b0b1deca86817c0acb26069c9f7c52d1b5f53 Mon Sep 17 00:00:00 2001 From: Olivier DEBAUCHE Date: Thu, 12 Dec 2024 22:02:14 +0100 Subject: [PATCH 31/32] Update requirements.txt fastapi update --- packages/grid/seaweedfs/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/grid/seaweedfs/requirements.txt b/packages/grid/seaweedfs/requirements.txt index d00285bc75f..5c973cd366a 100644 --- a/packages/grid/seaweedfs/requirements.txt +++ b/packages/grid/seaweedfs/requirements.txt @@ -1,4 +1,4 @@ -fastapi==0.115.5 +fastapi==0.115.6 pyyaml==6.0.1 supervisor==4.2.5 uvicorn==0.32.1 From 310cb444bc34748be2844cb702fc3d2ffa7d2630 Mon Sep 17 00:00:00 2001 From: Olivier DEBAUCHE Date: Thu, 12 Dec 2024 22:02:48 +0100 Subject: [PATCH 32/32] Update requirements.txt fastapi update --- packages/grid/enclave/attestation/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/grid/enclave/attestation/requirements.txt b/packages/grid/enclave/attestation/requirements.txt index cf27409d552..032dcf3cae2 100644 --- a/packages/grid/enclave/attestation/requirements.txt +++ b/packages/grid/enclave/attestation/requirements.txt @@ -1,3 +1,3 @@ -fastapi==0.115.5 +fastapi==0.115.6 loguru==0.7.2 uvicorn[standard]==0.32.1