diff --git a/pyproject.toml b/pyproject.toml index 585aed682f..c0318987f2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -248,7 +248,6 @@ ignore = [ "BLE", # Broad `Except` exception catches (intentional) # These are all new defaults added in ruff 0.16.0. Individual tickets linked from PYTHON-5964 track enabling each one. "INT", # flake8-gettext - "FLY", # flynt ] unfixable = [ "RUF100", # Unused noqa diff --git a/test/asynchronous/test_encryption.py b/test/asynchronous/test_encryption.py index 535d56d779..baf98df429 100644 --- a/test/asynchronous/test_encryption.py +++ b/test/asynchronous/test_encryption.py @@ -1392,7 +1392,7 @@ async def _test_explicit(self, expectation): await self._setup() client_encryption = self.create_client_encryption( self.KMS_PROVIDER_MAP, # type: ignore[arg-type] - ".".join([self.KEYVAULT_DB, self.KEYVAULT_COLL]), + f"{self.KEYVAULT_DB}.{self.KEYVAULT_COLL}", async_client_context.client, OPTS, ) @@ -1410,7 +1410,7 @@ async def _test_automatic(self, expectation_extjson, payload): await self._setup() encrypted_db = "db" encrypted_coll = "coll" - keyvault_namespace = ".".join([self.KEYVAULT_DB, self.KEYVAULT_COLL]) + keyvault_namespace = f"{self.KEYVAULT_DB}.{self.KEYVAULT_COLL}" encryption_opts = AutoEncryptionOpts( self.KMS_PROVIDER_MAP, # type: ignore[arg-type] diff --git a/test/test_encryption.py b/test/test_encryption.py index c7717737d4..1a6c4e582b 100644 --- a/test/test_encryption.py +++ b/test/test_encryption.py @@ -1386,7 +1386,7 @@ def _test_explicit(self, expectation): self._setup() client_encryption = self.create_client_encryption( self.KMS_PROVIDER_MAP, # type: ignore[arg-type] - ".".join([self.KEYVAULT_DB, self.KEYVAULT_COLL]), + f"{self.KEYVAULT_DB}.{self.KEYVAULT_COLL}", client_context.client, OPTS, ) @@ -1404,7 +1404,7 @@ def _test_automatic(self, expectation_extjson, payload): self._setup() encrypted_db = "db" encrypted_coll = "coll" - keyvault_namespace = ".".join([self.KEYVAULT_DB, self.KEYVAULT_COLL]) + keyvault_namespace = f"{self.KEYVAULT_DB}.{self.KEYVAULT_COLL}" encryption_opts = AutoEncryptionOpts( self.KMS_PROVIDER_MAP, # type: ignore[arg-type]