Skip to content

Commit

Permalink
Convert FBCODE 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. This is the last big diff to convert all of Fbcode to Ruff.

pomsky_fix_bugs

drop-conflicts
bypass-github-export-checks
allow-large-files

Reviewed By: amyreese

Differential Revision: D66886610

fbshipit-source-id: 8276a7f6164efec189ca0b87e535543ed5bc3615
  • Loading branch information
Thomas Polasek authored and facebook-github-bot committed Dec 6, 2024
1 parent 335b2b4 commit 65de6bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions flowtorch/bijectors/ops/spline.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,7 @@ def __init__(
if order not in ["linear", "quadratic"]:
raise ValueError(
"Keyword argument 'order' must be one of ['linear', \
'quadratic'], but '{}' was found!".format(
order
)
'quadratic'], but '{}' was found!".format(order)
)

self.count_bins = count_bins
Expand Down
4 changes: 1 addition & 3 deletions flowtorch/ops/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,7 @@ def monotonic_rational_spline(
inputs <= yc
).float() + (
(wc - input_lambdas * wb) * inputs + input_lambdas * wb * yb - wc * yc
) * (
inputs > yc
).float()
) * (inputs > yc).float()

denominator = ((wc - wa) * inputs + wa * ya - wc * yc) * (
inputs <= yc
Expand Down

0 comments on commit 65de6bc

Please sign in to comment.