Compare commits

...

3 commits

Author SHA1 Message Date
c940dab9b5
commands
Some checks failed
/ alpine (push) Failing after 28s
/ debian (push) Successful in 1m22s
/ ubuntu (push) Successful in 2m1s
/ arch (push) Failing after 36s
/ opensuse (push) Successful in 2m4s
/ fedora (push) Successful in 3m27s
/ alma (push) Successful in 4m56s
/ rocky (push) Successful in 5m48s
2025-02-23 00:07:15 +01:00
c427cf60ce
mv 2025-02-23 00:04:11 +01:00
849d1ef1bf
ruff/check,format 2025-02-23 00:03:14 +01:00
2 changed files with 16 additions and 4 deletions

View file

@ -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)

View file

@ -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(