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