From 955164439be9da1d6b2a2067e7476c7e4990dd8c Mon Sep 17 00:00:00 2001 From: Joey Ballentine Date: Thu, 18 Apr 2024 19:45:03 -0400 Subject: [PATCH 1/2] Update to ruff 0.4.0 --- requirements-dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements-dev.txt b/requirements-dev.txt index b40a5d12..3955ec0f 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -3,7 +3,7 @@ build twine # lint -ruff==0.3.0 +ruff==0.4.0 pyright==1.1.342 # test From be23af17bbcd9af7b7f9fb6ac0737b854043a6c6 Mon Sep 17 00:00:00 2001 From: Joey Ballentine Date: Thu, 18 Apr 2024 19:48:30 -0400 Subject: [PATCH 2/2] fix lint --- .../architectures/M3SNet/arch/local_arch.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libs/spandrel_extra_arches/spandrel_extra_arches/architectures/M3SNet/arch/local_arch.py b/libs/spandrel_extra_arches/spandrel_extra_arches/architectures/M3SNet/arch/local_arch.py index 417223f5..9747f300 100644 --- a/libs/spandrel_extra_arches/spandrel_extra_arches/architectures/M3SNet/arch/local_arch.py +++ b/libs/spandrel_extra_arches/spandrel_extra_arches/architectures/M3SNet/arch/local_arch.py @@ -27,9 +27,7 @@ def __init__( self.train_size = train_size def extra_repr(self) -> str: - return "kernel_size={}, base_size={}, stride={}, fast_imp={}".format( - self.kernel_size, self.base_size, self.kernel_size, self.fast_imp - ) + return f"kernel_size={self.kernel_size}, base_size={self.base_size}, stride={self.kernel_size}, fast_imp={self.fast_imp}" def forward(self, x): if self.kernel_size is None and self.base_size: