Skip to content

Commit

Permalink
Convert directory fbcode/pytorch to use the Ruff Formatter
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Thomas Polasek authored and facebook-github-bot committed Dec 4, 2024
1 parent 4c7affb commit 1cf57b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/inputgen/test_variable_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ 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)

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)
Expand Down

0 comments on commit 1cf57b0

Please sign in to comment.