Commit 6bdbdda0 authored by Miguel Ángel Adorna Ruiz's avatar Miguel Ángel Adorna Ruiz
Browse files

Update ruff script on SDK pipelines

parent 67667401
Loading
Loading
Loading
Loading
+3 −8
Original line number Diff line number Diff line
@@ -81,13 +81,8 @@ dev_linting_code:
    - when: always
  script:
    - |
      if ! command -v ruff >/dev/null 2>&1; then
        curl -LsSf https://astral.sh/ruff/install.sh | sh
      else
        echo "ruff already installed: $(ruff --version)"
      fi

      echo " --------------------- ruff checks ---------------------"
      ruff check --config cicd/ruff.toml . || true
      echo "###ruff checks###"
      pip install ruff
      make lint
  needs: ["dev_secrets_in_repo"]
  <<: *dev_common
 No newline at end of file
+3 −9
Original line number Diff line number Diff line
@@ -80,15 +80,9 @@ staging_linting_code:
  stage: staging_linting
  script:
    - |
      if ! command -v ruff >/dev/null 2>&1; then
        curl -LsSf https://astral.sh/ruff/install.sh | sh
      else
        echo "ruff already installed: $(ruff --version)"
      fi

      echo " --------------------- ruff checks ---------------------"

      ruff check --config cicd/ruff.toml . || true
      echo "###ruff checks###"
      pip install ruff
      make lint
  needs: ["staging_secrets_in_repo"]
  <<: *staging_common