Skip to content

Commit 055ab3a

Browse files
Thomas Polasekfacebook-github-bot
authored andcommitted
Convert directory fbcode/vision 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: bottler Differential Revision: D66472063 fbshipit-source-id: 35841cb397e4f8e066e2159550d2f56b403b1bef
1 parent f6c2ca6 commit 055ab3a

File tree

92 files changed

+121
-191
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+121
-191
lines changed

.circleci/regenerate.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ def workflow_pair(
8888
upload=False,
8989
filter_branch,
9090
):
91-
9291
w = []
9392
py = python_version.replace(".", "")
9493
pyt = pytorch_version.replace(".", "")
@@ -127,7 +126,6 @@ def generate_base_workflow(
127126
btype,
128127
filter_branch=None,
129128
):
130-
131129
d = {
132130
"name": base_workflow_name,
133131
"python_version": python_version,

docs/examples/pulsar_basic.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
sphere renderer. It renders and saves an image with 10 random spheres.
1111
Output: basic.png.
1212
"""
13+
1314
import logging
1415
import math
1516
from os import path

docs/examples/pulsar_basic_unified.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
10 random spheres.
1212
Output: basic-pt3d.png.
1313
"""
14+
1415
import logging
1516
from os import path
1617

docs/examples/pulsar_cam.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
original camera parameters.
1515
Output: cam.gif.
1616
"""
17+
1718
import logging
1819
import math
1920
from os import path

docs/examples/pulsar_cam_unified.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
original camera parameters.
1515
Output: cam-pt3d.gif
1616
"""
17+
1718
import logging
1819
from os import path
1920

docs/examples/pulsar_multiview.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
because opacity support has not landed in PyTorch3D for general data
1919
structures yet.
2020
"""
21+
2122
import logging
2223
import math
2324
from os import path

docs/examples/pulsar_optimization.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
optimization is used to converge towards a faithful
1414
scene representation.
1515
"""
16+
1617
import logging
1718
import math
1819

docs/examples/pulsar_optimization_unified.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
optimization is used to converge towards a faithful
1414
scene representation.
1515
"""
16+
1617
import logging
1718
import math
1819

projects/implicitron_trainer/experiment.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
# pyre-unsafe
99

10-
""""
10+
""" "
1111
This file is the entry point for launching experiments with Implicitron.
1212
1313
Launch Training
@@ -44,6 +44,7 @@
4444
config file.
4545
4646
"""
47+
4748
import logging
4849
import os
4950
import warnings

projects/implicitron_trainer/impl/model_factory.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626

2727

2828
class ModelFactoryBase(ReplaceableBase):
29-
3029
resume: bool = True # resume from the last checkpoint
3130

3231
def __call__(self, **kwargs) -> ImplicitronModelBase:

0 commit comments

Comments
 (0)