mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-18 05:44:31 +08:00
Switch to ruff (#1939)
* `isort` -> `ruff` * `pylint` -> `ruff` * Remove line * More minor cleanup * Better documentation for rules we are enabling * Fix gitignore, run black * vscode settings --------- Co-authored-by: Matt Tancik <mattt4001@gmail.com>
This commit is contained in:
1 parent
814db32ec4
commit
d542646c72
79 files changed
+158
-237
No files matched your search
@@ -12,7 +12,6 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
# pylint: disable=too-few-public-methods
|
||||
|
||||
"""Scheduler Classes"""
|
||||
|
||||
|
||||
@@ -51,10 +51,8 @@ from nerfstudio.utils.rich_utils import CONSOLE
|
||||
from nerfstudio.utils.writer import EventName, TimeWriter
|
||||
from nerfstudio.viewer.server.viewer_state import ViewerState
|
||||
|
||||
TRAIN_INTERATION_OUTPUT = Tuple[ # pylint: disable=invalid-name
|
||||
torch.Tensor, Dict[str, torch.Tensor], Dict[str, torch.Tensor]
|
||||
]
|
||||
TORCH_DEVICE = str # pylint: disable=invalid-name
|
||||
TRAIN_INTERATION_OUTPUT = Tuple[torch.Tensor, Dict[str, torch.Tensor], Dict[str, torch.Tensor]]
|
||||
TORCH_DEVICE = str
|
||||
|
||||
|
||||
@dataclass
|
||||
|
||||
Reference in new issue
Block a user