ruff/check,format
This commit is contained in:
parent
dfd4219191
commit
849d1ef1bf
1 changed files with 14 additions and 2 deletions
16
spcd/cmd.py
16
spcd/cmd.py
|
@ -28,8 +28,20 @@ def spcd_build_project() -> None:
|
||||||
|
|
||||||
def spcd_check_project() -> None:
|
def spcd_check_project() -> None:
|
||||||
"""Check the project for anything wrong."""
|
"""Check the project for anything wrong."""
|
||||||
ps.run("ruff", "check")
|
ps.run(
|
||||||
ps.run("ruff", "format", "--diff")
|
"ruff",
|
||||||
|
"check",
|
||||||
|
("--ignore", "D203,D213"),
|
||||||
|
"--isolated",
|
||||||
|
("--select", "ALL"),
|
||||||
|
)
|
||||||
|
ps.run(
|
||||||
|
"ruff",
|
||||||
|
"format",
|
||||||
|
"--diff",
|
||||||
|
"--isolated",
|
||||||
|
("--line-length", "80"),
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
def spcd_synchronize(
|
def spcd_synchronize(
|
||||||
|
|
Loading…
Add table
Reference in a new issue