mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-26 10:59:53 +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
@@ -14,7 +14,6 @@
|
||||
|
||||
"""Base Configs"""
|
||||
|
||||
# pylint: disable=wrong-import-position
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
@@ -30,7 +29,7 @@ warnings.filterwarnings("ignore", module="torchvision")
|
||||
|
||||
|
||||
# Pretty printing class
|
||||
class PrintableConfig: # pylint: disable=too-few-public-methods
|
||||
class PrintableConfig:
|
||||
"""Printable Config defining str function"""
|
||||
|
||||
def __str__(self):
|
||||
@@ -48,7 +47,7 @@ class PrintableConfig: # pylint: disable=too-few-public-methods
|
||||
|
||||
# Base instantiate configs
|
||||
@dataclass
|
||||
class InstantiateConfig(PrintableConfig): # pylint: disable=too-few-public-methods
|
||||
class InstantiateConfig(PrintableConfig):
|
||||
"""Config class for instantiating an the class specified in the _target attribute."""
|
||||
|
||||
_target: Type
|
||||
|
||||
@@ -12,7 +12,6 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
# pylint: disable=invalid-name
|
||||
|
||||
"""This file contains the configuration for external methods which are not included in this repository."""
|
||||
import subprocess
|
||||
|
||||
Reference in new issue
Block a user