From ca2c765befb5250d5a090591cdbc8c8d0c04c3f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexis=20M=C3=A9taireau?= Date: Sat, 16 Dec 2023 22:57:47 +0100 Subject: [PATCH] build: add a check with ruff --- .gitlab-ci.yml | 6 ++++++ Makefile | 2 ++ 2 files changed, 8 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 70a2923..7facd39 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -45,6 +45,12 @@ pylint: allow_failure: true coverage: '/Your code has been rated at ([0-9.]+)\/100/' +format: + <<: *pull_cache + stage: test + script: + - make ruff + pages: <<: *pull_cache stage: deploy diff --git a/Makefile b/Makefile index 9f61d37..248d8db 100644 --- a/Makefile +++ b/Makefile @@ -20,6 +20,8 @@ cog: ## Run cog, to integrate the CLI options to the docs. venv/bin/cog -r docs/*.md tests: venv ## Run the tests venv/bin/pytest +ruff: venv + venv/bin/ruff format --check . djlint: venv ## Format the templates venv/bin/djlint --ignore=H030,H031,H006 --profile jinja --lint argos/server/templates/*html pylint: venv ## Runs pylint on the code