Add more Ruff rules (#891)

* ruff: apply rule F

* ruff: apply rule E

* ruff: apply rule SIM

* ruff: apply rule TCH

* ruff: apply rule ERA

* ruff: apply rule PLW

* ruff: apply rule FLY

* ruff: apply rule PERF

* ruff: apply rules FURB & RUF
This commit is contained in:
thomas girod authored and GitHub committed 2024-10-15 11:36:26 +02:00
1 parent d114b01bcc
commit d16a207a83
82 files changed
+836 -748

No files matched your search

@@ -28,10 +28,10 @@ class Command(CollectStatic):
def collect_scss(self) -> list[Scss.CompileArg]:
files: list[Scss.CompileArg] = []
for finder in get_finders():
for path, storage in finder.list(
for path_str, storage in finder.list(
set(self.ignore_patterns) - set(IGNORE_PATTERNS_SCSS)
):
path = Path(path)
path = Path(path_str)
if path.suffix != ".scss":
continue
files.append(
+1 -1
View File
@@ -10,7 +10,7 @@ from staticfiles.processors import OpenApi, Webpack
class Command(Runserver):
"""Light wrapper around the statics runserver that integrates webpack auto bundling"""
"""Light wrapper around default runserver that integrates webpack auto bundling."""
def run(self, **options):
# OpenApi generation needs to be before webpack