Skip to content

Commit

Permalink
apply Black 2024 style in fbcode (4/16)
Browse files Browse the repository at this point in the history
Summary:
Formats the covered files with pyfmt.

paintitblack

Reviewed By: aleivag

Differential Revision: D54447727

fbshipit-source-id: 8844b1caa08de94d04ac4df3c768dbf8c865fd2f
  • Loading branch information
amyreese authored and facebook-github-bot committed Mar 3, 2024
1 parent f33e24d commit cde491f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion watchman/integration/lib/WatchmanTestCase.py
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ def setDefaultConfiguration(self):
except unittest.SkipTest:
pass

for (transport, encoding, parallel, split, suffix) in matrix:
for transport, encoding, parallel, split, suffix in matrix:
make_class(transport, encoding, suffix, parallel == "parallel", split)

return None
2 changes: 1 addition & 1 deletion watchman/integration/test_dirname.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def test_dirname(self) -> None:
["1", 4, []],
]

for (dirname, depth, expect) in tests:
for dirname, depth, expect in tests:
if depth is None:
# equivalent to `depth ge 0`
term = ["dirname", dirname]
Expand Down
2 changes: 1 addition & 1 deletion watchman/integration/test_size.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def test_size_expr(self) -> None:
["lt", 3, ["empty"]],
]

for (op, operand, expect) in tests:
for op, operand, expect in tests:
res = self.watchmanCommand(
"query", root, {"expression": ["size", op, operand], "fields": ["name"]}
)
Expand Down
2 changes: 1 addition & 1 deletion watchman/python/tests/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def expand_bser_mods(test_class):
caller_scope = inspect.currentframe().f_back.f_locals

flavors = [(bser, "Bser"), (pybser, "PyBser")]
for (mod, suffix) in flavors:
for mod, suffix in flavors:

def make_class(mod, suffix):
subclass_name = test_class.__name__ + suffix
Expand Down
1 change: 1 addition & 0 deletions watchman/runtests.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,7 @@ def loadTestsFromModule(self, module, *args, **kw):

tls = threading.local()


# Manage printing from concurrent threads
# http://stackoverflow.com/a/3030755/149111
class ThreadSafeFile:
Expand Down

0 comments on commit cde491f

Please sign in to comment.