🔀 Merge branch 'almet/ruff' into 'main'

build: add a check with ruff

See merge request framasoft/framaspace/argos!33
This commit is contained in:
Luc Didry 2024-03-25 12:22:58 +00:00
commit 6f1c5ed8c0
2 changed files with 8 additions and 0 deletions

View file

@ -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

View file

@ -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