mirror of
https://framagit.org/framasoft/framaspace/argos.git
synced 2025-04-28 18:02:41 +02:00
build: add a check with ruff
This commit is contained in:
parent
6f93eeee49
commit
ca2c765bef
2 changed files with 8 additions and 0 deletions
|
@ -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
|
||||||
|
|
2
Makefile
2
Makefile
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue