Skip to content

Commit e3730fc

Browse files
bowiechenmeta-codesync[bot]
authored andcommitted
apply Black 25.11.0 style in fbcode (75/92)
Summary: Formats the covered files with pyfmt. paintitblack Reviewed By: itamaro Differential Revision: D90476261 fbshipit-source-id: 533b9532f89f5017f9ef2bdefd2ae296948cd619
1 parent 59228ad commit e3730fc

File tree

4 files changed

+10
-9
lines changed

4 files changed

+10
-9
lines changed

flowtorch/bijectors/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def log_abs_det_jacobian(
169169
if ladj is None:
170170
if is_record_flow_graph_enabled():
171171
warnings.warn(
172-
"Computing _log_abs_det_jacobian from values and not " "from cache."
172+
"Computing _log_abs_det_jacobian from values and not from cache."
173173
)
174174
params = (
175175
self._params_fn(x, context) if self._params_fn is not None else None

scripts/copyright_headers.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,9 @@ def print_results(count_changed, args):
8888
print(f"{count_changed} files would be changed.")
8989
elif args.check:
9090
print(
91-
f"""{count_changed} files would be changed and {len(source_files) /
92-
- count_changed} files would be unchanged."""
91+
f"""{count_changed} files would be changed and {
92+
len(source_files) / -count_changed
93+
} files would be unchanged."""
9394
)
9495
elif count_changed:
9596
print(f"{count_changed} files fixed.")

scripts/generate_api_docs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ def generate_markdown(article_name: str, symbol_name: str, entity: Any) -> str:
9797
}
9898

9999
header = f"""---
100-
id: {item['id']}
101-
sidebar_label: {item['sidebar_label']}
100+
id: {item["id"]}
101+
sidebar_label: {item["sidebar_label"]}
102102
---"""
103103

104104
# Convert symbol to MDX

tests/test_imports.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,14 @@ def tst_imports(cls_name, detected, imported):
5454
error_msg = []
5555
if len(unimported):
5656
error_msg.append(
57-
f'The following {cls_name} classes are declared but not imported: \
58-
{", ".join(unimported)}'
57+
f"The following {cls_name} classes are declared but not imported: \
58+
{', '.join(unimported)}"
5959
)
6060

6161
if len(undetected):
6262
error_msg.append(
63-
f'The following {cls_name} classes are imported but not detected: \
64-
{", ".join(undetected)}'
63+
f"The following {cls_name} classes are imported but not detected: \
64+
{', '.join(undetected)}"
6565
)
6666

6767
if len(error_msg):

0 commit comments

Comments
 (0)