From b1149ab4acf8a60110226cb35c158f43f43b3418 Mon Sep 17 00:00:00 2001 From: Thomas Polasek Date: Sat, 23 Nov 2024 14:42:24 -0800 Subject: [PATCH] Convert directory fbcode/mcrouter to use the Ruff Formatter Summary: Converts the directory specified to use the Ruff formatter in pyfmt ruff_dog If this diff causes merge conflicts when rebasing, please run `hg status -n -0 --change . -I '**/*.{py,pyi}' | xargs -0 arc pyfmt` on your diff, and amend any changes before rebasing onto latest. That should help reduce or eliminate any merge conflicts. allow-large-files Reviewed By: amyreese Differential Revision: D66373367 fbshipit-source-id: 6de22f98cb0557ab07d11c5cd8c8e40dc3df524c --- mcrouter/test/MCProcess.py | 1 - mcrouter/test/test_axonlog.py | 1 - mcrouter/test/test_mcpiper.py | 1 - mcrouter/test/test_mcrouter_basic.py | 1 - 4 files changed, 4 deletions(-) diff --git a/mcrouter/test/MCProcess.py b/mcrouter/test/MCProcess.py index 213f1fec7..cb8501cfa 100644 --- a/mcrouter/test/MCProcess.py +++ b/mcrouter/test/MCProcess.py @@ -686,7 +686,6 @@ def parse_parts(s, pattern): def sub_port(s, substitute_ports, port_map): - parts = parse_parts(s, IPV6_SERVER_PAT) or parse_parts(s, SERVER_PAT) if parts: try: diff --git a/mcrouter/test/test_axonlog.py b/mcrouter/test/test_axonlog.py index f7ee82023..5bd93026b 100644 --- a/mcrouter/test/test_axonlog.py +++ b/mcrouter/test/test_axonlog.py @@ -17,7 +17,6 @@ def setUp(self): class TestAxonProxyFailedDelete(TestAxonLogBase): - def setUp(self): self.mc1 = self.add_server(DeadServer(5000)) self.mr = self.add_mcrouter(self.config, extra_args=self.extra_args) diff --git a/mcrouter/test/test_mcpiper.py b/mcrouter/test/test_mcpiper.py index 5f2486bd0..04cae523c 100644 --- a/mcrouter/test/test_mcpiper.py +++ b/mcrouter/test/test_mcpiper.py @@ -72,7 +72,6 @@ def do_get_test(self, mcrouter, raw, special_symbol): self.assertTrue(mcpiper.contains("get key_hit")) def do_set_test(self, mcrouter, raw, special_symbol): - mcpiper = self.get_mcpiper(mcrouter, raw) self.assertTrue(mcrouter.set("key", "value2")) diff --git a/mcrouter/test/test_mcrouter_basic.py b/mcrouter/test/test_mcrouter_basic.py index 3b4242b68..16fde5f89 100644 --- a/mcrouter/test/test_mcrouter_basic.py +++ b/mcrouter/test/test_mcrouter_basic.py @@ -850,7 +850,6 @@ def test_l1_l2_gat_ncache(self): class TestMcrouterBasicL1MultipleL2SizeSplit(McrouterTestCase): - config_multil2 = "./mcrouter/test/test_basic_l1_multiple_l2_sizesplit.json" extra_args = [] MC_MSG_FLAG_SIZE_SPLIT = 0x20