diff --git a/.forgejo/workflows/before_almalinux_8.yaml b/.forgejo/workflows/before_almalinux_8.yaml index 12f0c9e..945c231 100644 --- a/.forgejo/workflows/before_almalinux_8.yaml +++ b/.forgejo/workflows/before_almalinux_8.yaml @@ -9,5 +9,6 @@ jobs: SPCD: ${{vars.SPCD}} run: ${{vars.SPCD}} + - run: spcd-check-project - run: spcd-build-project - run: spcd-browse-workspace diff --git a/.forgejo/workflows/before_alpine_3.19.yaml b/.forgejo/workflows/before_alpine_3.19.yaml index 2a4d47e..10cdc29 100644 --- a/.forgejo/workflows/before_alpine_3.19.yaml +++ b/.forgejo/workflows/before_alpine_3.19.yaml @@ -9,5 +9,6 @@ jobs: SPCD: ${{vars.SPCD}} run: ${{vars.SPCD}} + - run: spcd-check-project - run: spcd-build-project - run: spcd-browse-workspace diff --git a/.forgejo/workflows/before_archlinux_base-20231112.0.191179.yaml b/.forgejo/workflows/before_archlinux_base-20231112.0.191179.yaml index 8d3228d..1c95bb1 100644 --- a/.forgejo/workflows/before_archlinux_base-20231112.0.191179.yaml +++ b/.forgejo/workflows/before_archlinux_base-20231112.0.191179.yaml @@ -9,5 +9,6 @@ jobs: SPCD: ${{vars.SPCD}} run: ${{vars.SPCD}} + - run: spcd-check-project - run: spcd-build-project - run: spcd-browse-workspace diff --git a/.forgejo/workflows/before_debian_bullseye.yaml b/.forgejo/workflows/before_debian_bullseye.yaml index f1d76b6..4146863 100644 --- a/.forgejo/workflows/before_debian_bullseye.yaml +++ b/.forgejo/workflows/before_debian_bullseye.yaml @@ -9,5 +9,6 @@ jobs: SPCD: ${{vars.SPCD}} run: ${{vars.SPCD}} + - run: spcd-check-project - run: spcd-build-project - run: spcd-browse-workspace diff --git a/.forgejo/workflows/before_fedora_39.yaml b/.forgejo/workflows/before_fedora_39.yaml index abb8cd5..cf5e65f 100644 --- a/.forgejo/workflows/before_fedora_39.yaml +++ b/.forgejo/workflows/before_fedora_39.yaml @@ -9,5 +9,6 @@ jobs: SPCD: ${{vars.SPCD}} run: ${{vars.SPCD}} + - run: spcd-check-project - run: spcd-build-project - run: spcd-browse-workspace diff --git a/.forgejo/workflows/before_rockylinux_8.yaml b/.forgejo/workflows/before_rockylinux_8.yaml index ba3fd0e..10a78f5 100644 --- a/.forgejo/workflows/before_rockylinux_8.yaml +++ b/.forgejo/workflows/before_rockylinux_8.yaml @@ -9,5 +9,6 @@ jobs: SPCD: ${{vars.SPCD}} run: ${{vars.SPCD}} + - run: spcd-check-project - run: spcd-build-project - run: spcd-browse-workspace diff --git a/.forgejo/workflows/before_ubuntu_jammy.yaml b/.forgejo/workflows/before_ubuntu_jammy.yaml index 0c4dcac..45245ef 100644 --- a/.forgejo/workflows/before_ubuntu_jammy.yaml +++ b/.forgejo/workflows/before_ubuntu_jammy.yaml @@ -9,5 +9,6 @@ jobs: SPCD: ${{vars.SPCD}} run: ${{vars.SPCD}} + - run: spcd-check-project - run: spcd-build-project - run: spcd-browse-workspace diff --git a/.forgejo/workflows/latest_almalinux_9.yaml b/.forgejo/workflows/latest_almalinux_9.yaml index bc6a830..f2c48e3 100644 --- a/.forgejo/workflows/latest_almalinux_9.yaml +++ b/.forgejo/workflows/latest_almalinux_9.yaml @@ -9,5 +9,6 @@ jobs: SPCD: ${{vars.SPCD}} run: ${{vars.SPCD}} + - run: spcd-check-project - run: spcd-build-project - run: spcd-browse-workspace diff --git a/.forgejo/workflows/latest_alpine_3.20.yaml b/.forgejo/workflows/latest_alpine_3.20.yaml index 9895560..3f1ff3b 100644 --- a/.forgejo/workflows/latest_alpine_3.20.yaml +++ b/.forgejo/workflows/latest_alpine_3.20.yaml @@ -9,5 +9,6 @@ jobs: SPCD: ${{vars.SPCD}} run: ${{vars.SPCD}} + - run: spcd-check-project - run: spcd-build-project - run: spcd-browse-workspace diff --git a/.forgejo/workflows/latest_archlinux_base-20240101.0.204074.yaml b/.forgejo/workflows/latest_archlinux_base-20240101.0.204074.yaml index d216c54..11f94ef 100644 --- a/.forgejo/workflows/latest_archlinux_base-20240101.0.204074.yaml +++ b/.forgejo/workflows/latest_archlinux_base-20240101.0.204074.yaml @@ -9,5 +9,6 @@ jobs: SPCD: ${{vars.SPCD}} run: ${{vars.SPCD}} + - run: spcd-check-project - run: spcd-build-project - run: spcd-browse-workspace diff --git a/.forgejo/workflows/latest_debian_bookworm.yaml b/.forgejo/workflows/latest_debian_bookworm.yaml index 2cdb6a2..47567e8 100644 --- a/.forgejo/workflows/latest_debian_bookworm.yaml +++ b/.forgejo/workflows/latest_debian_bookworm.yaml @@ -11,6 +11,7 @@ jobs: SPCD_SSH_KEY: ${{secrets.SPCD_SSH_KEY}} run: ${{vars.SPCD}} + - run: spcd-check-project - run: spcd-build-project - run: spcd-browse-workspace - run: spcd-synchronize diff --git a/.forgejo/workflows/latest_fedora_40.yaml b/.forgejo/workflows/latest_fedora_40.yaml index 418b6a3..04a2beb 100644 --- a/.forgejo/workflows/latest_fedora_40.yaml +++ b/.forgejo/workflows/latest_fedora_40.yaml @@ -9,5 +9,6 @@ jobs: SPCD: ${{vars.SPCD}} run: ${{vars.SPCD}} + - run: spcd-check-project - run: spcd-build-project - run: spcd-browse-workspace diff --git a/.forgejo/workflows/latest_rockylinux_9.yaml b/.forgejo/workflows/latest_rockylinux_9.yaml index 73333d0..7a5f07f 100644 --- a/.forgejo/workflows/latest_rockylinux_9.yaml +++ b/.forgejo/workflows/latest_rockylinux_9.yaml @@ -9,5 +9,6 @@ jobs: SPCD: ${{vars.SPCD}} run: ${{vars.SPCD}} + - run: spcd-check-project - run: spcd-build-project - run: spcd-browse-workspace diff --git a/.forgejo/workflows/latest_ubuntu_noble.yaml b/.forgejo/workflows/latest_ubuntu_noble.yaml index 275beb9..ae589e8 100644 --- a/.forgejo/workflows/latest_ubuntu_noble.yaml +++ b/.forgejo/workflows/latest_ubuntu_noble.yaml @@ -9,5 +9,6 @@ jobs: SPCD: ${{vars.SPCD}} run: ${{vars.SPCD}} + - run: spcd-check-project - run: spcd-build-project - run: spcd-browse-workspace diff --git a/.gitea/workflows/main.yaml b/.gitea/workflows/main.yaml index 4733f41..6c538bd 100644 --- a/.gitea/workflows/main.yaml +++ b/.gitea/workflows/main.yaml @@ -11,5 +11,6 @@ jobs: SPCD_GIT_ROOT: ${{vars.SPCD_GIT_ROOT}} run: ${{vars.SPCD}} + - run: spcd-check-project - run: spcd-build-project - run: spcd-browse-workspace diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 2558b3b..cc5bd20 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -12,5 +12,6 @@ jobs: SPCD_GIT_ROOT: ${{vars.SPCD_GIT_ROOT}} run: echo '${{vars.SPCD}}' | tr -d "\r" | sh -s + - run: spcd-check-project - run: spcd-build-project - run: spcd-browse-workspace diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7ff26d9..432fe30 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -3,5 +3,6 @@ job: script: - echo "${SPCD}" | sh -s + - spcd-check-project - spcd-build-project - spcd-browse-workspace diff --git a/spcd/__init__.py b/spcd/__init__.py index 48492b1..4a81720 100644 --- a/spcd/__init__.py +++ b/spcd/__init__.py @@ -44,6 +44,7 @@ def install_commands(path: str) -> None: for command in [ "browse-workspace", "build-project", + "check-project", "synchronize", ]: log.info(command) diff --git a/spcd/cmd.py b/spcd/cmd.py index 07a942a..7cf0a0e 100644 --- a/spcd/cmd.py +++ b/spcd/cmd.py @@ -22,6 +22,10 @@ def spcd_build_project() -> None: pass +def spcd_check_project() -> None: + ps.run("ruff", "check") + + def spcd_synchronize( target: str | None = None, source: str | None = None ) -> None: