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:
Brent YiandMatt Tancik authored and GitHub committed 2023-05-17 10:08:14 -07:00
1 parent 814db32ec4
commit d542646c72
79 files changed
+158 -237

No files matched your search

+2 -3
View File
@@ -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
-1
View File
@@ -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