From 1cf57b0aa42af3c0f2bc2fc9517cd15c6c7671e1 Mon Sep 17 00:00:00 2001 From: Thomas Polasek Date: Wed, 4 Dec 2024 08:52:57 -0800 Subject: [PATCH] Convert directory fbcode/pytorch 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: yhcharles Differential Revision: D66543433 fbshipit-source-id: 1e24ef6c1e230a3bceef28c73f9bb9118c3dab27 --- test/inputgen/test_variable_generation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/inputgen/test_variable_generation.py b/test/inputgen/test_variable_generation.py index c839a2a..05a0ae6 100644 --- a/test/inputgen/test_variable_generation.py +++ b/test/inputgen/test_variable_generation.py @@ -19,7 +19,7 @@ def test_nextup(self): self.assertEqual(nextup(-math.inf), -1.7976931348623157e308) self.assertEqual(nextup(-5e-324), 0.0) self.assertEqual(nextup(0.0), 5e-324) - self.assertEqual(nextup(0.9999999999999999), 1.0), + (self.assertEqual(nextup(0.9999999999999999), 1.0),) self.assertEqual(nextup(1.0), 1.0000000000000002) self.assertEqual(nextup(1.7976931348623157e308), math.inf) self.assertEqual(nextup(math.inf), math.inf) @@ -27,7 +27,7 @@ def test_nextup(self): def test_nextdown(self): self.assertEqual(nextdown(math.inf), 1.7976931348623157e308) self.assertEqual(nextdown(1.0000000000000002), 1.0) - self.assertEqual(nextdown(1.0), 0.9999999999999999), + (self.assertEqual(nextdown(1.0), 0.9999999999999999),) self.assertEqual(nextdown(5e-324), 0.0) self.assertEqual(nextdown(0.0), -5e-324) self.assertEqual(nextdown(-1.7976931348623157e308), -math.inf)