From 849d1ef1bf5c97a1e54e765e741680c7f363286a Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sun, 23 Feb 2025 00:03:14 +0100 Subject: [PATCH 1/3] ruff/check,format --- spcd/cmd.py | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/spcd/cmd.py b/spcd/cmd.py index 37b44b7..ad09f8f 100644 --- a/spcd/cmd.py +++ b/spcd/cmd.py @@ -28,8 +28,20 @@ def spcd_build_project() -> None: def spcd_check_project() -> None: """Check the project for anything wrong.""" - ps.run("ruff", "check") - ps.run("ruff", "format", "--diff") + ps.run( + "ruff", + "check", + ("--ignore", "D203,D213"), + "--isolated", + ("--select", "ALL"), + ) + ps.run( + "ruff", + "format", + "--diff", + "--isolated", + ("--line-length", "80"), + ) def spcd_synchronize( From c427cf60ce942719f6ef459ba99e7f8bccce202b Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sun, 23 Feb 2025 00:04:11 +0100 Subject: [PATCH 2/3] mv --- spcd/{cmd.py => command.py} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename spcd/{cmd.py => command.py} (100%) diff --git a/spcd/cmd.py b/spcd/command.py similarity index 100% rename from spcd/cmd.py rename to spcd/command.py From c940dab9b55f8c2f2980b30db16173852f4b61ea Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sun, 23 Feb 2025 00:07:15 +0100 Subject: [PATCH 3/3] commands --- spcd/__init__.py | 4 ++-- spcd/{command.py => commands.py} | 0 2 files changed, 2 insertions(+), 2 deletions(-) rename spcd/{command.py => commands.py} (100%) diff --git a/spcd/__init__.py b/spcd/__init__.py index effbd50..31cd594 100644 --- a/spcd/__init__.py +++ b/spcd/__init__.py @@ -10,7 +10,7 @@ from rwx import fs from rwx.log import stream as log from rwx.ps import run -from spcd import act, cmd +from spcd import act, commands from spcd.ci import project, projects from spcd.shell import env from spcd.util import browse, cat, split, step @@ -161,7 +161,7 @@ def main(main_file: Path) -> None: install_commands(main_file) install_python_packages() else: - f = getattr(cmd, name.replace("-", "_")) + f = getattr(commands, name.replace("-", "_")) f(*arguments) diff --git a/spcd/command.py b/spcd/commands.py similarity index 100% rename from spcd/command.py rename to spcd/commands.py