build: add a check with ruff

This commit is contained in:
Alexis Métaireau 2023-12-16 22:57:47 +01:00 committed by Luc Didry
parent 6f93eeee49
commit ca2c765bef
No known key found for this signature in database
GPG key ID: EA868E12D0257E3C
2 changed files with 8 additions and 0 deletions

View file

@ -45,6 +45,12 @@ pylint:
allow_failure: true allow_failure: true
coverage: '/Your code has been rated at ([0-9.]+)\/100/' coverage: '/Your code has been rated at ([0-9.]+)\/100/'
format:
<<: *pull_cache
stage: test
script:
- make ruff
pages: pages:
<<: *pull_cache <<: *pull_cache
stage: deploy stage: deploy

View file

@ -20,6 +20,8 @@ cog: ## Run cog, to integrate the CLI options to the docs.
venv/bin/cog -r docs/*.md venv/bin/cog -r docs/*.md
tests: venv ## Run the tests tests: venv ## Run the tests
venv/bin/pytest venv/bin/pytest
ruff: venv
venv/bin/ruff format --check .
djlint: venv ## Format the templates djlint: venv ## Format the templates
venv/bin/djlint --ignore=H030,H031,H006 --profile jinja --lint argos/server/templates/*html venv/bin/djlint --ignore=H030,H031,H006 --profile jinja --lint argos/server/templates/*html
pylint: venv ## Runs pylint on the code pylint: venv ## Runs pylint on the code