Commit 379c518e authored by Andres Anaya Amariels's avatar Andres Anaya Amariels 🚀
Browse files

fix: update ruff installation and linting checks in CI templates

parent c348eb5b
Loading
Loading
Loading
Loading
+8 −4
Original line number Diff line number Diff line
@@ -45,9 +45,13 @@ dev_linting_code:
    - when: always
  script:
    - |
      cat /etc/*release
      #echo "###ruff checks###"
      #pip install ruff
      #ruff check --config cicd/ruff.toml . || true
      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
  needs: ["dev_secrets_in_repo"]
  <<: *dev_common
 No newline at end of file
+9 −4
Original line number Diff line number Diff line
@@ -44,10 +44,15 @@ staging_linting_code:
  stage: staging_linting
  script:
    - |
      cat /etc/*release
      #echo "###ruff checks###"
      #pip install ruff
      #ruff check --config cicd/ruff.toml . || true
      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
  needs: ["staging_secrets_in_repo"]
  <<: *staging_common