mirror of
https://framagit.org/framasoft/framaspace/argos.git
synced 2025-04-28 18:02:41 +02:00
🚨👷 — Add djlint in CI + fix djlint warnings
This commit is contained in:
parent
b21399792e
commit
61c3dd3fa7
4 changed files with 12 additions and 3 deletions
|
@ -12,6 +12,11 @@ pytest:
|
||||||
script:
|
script:
|
||||||
- make tests
|
- make tests
|
||||||
|
|
||||||
|
djlint:
|
||||||
|
stage: test
|
||||||
|
script:
|
||||||
|
- make djlint
|
||||||
|
|
||||||
pages:
|
pages:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
|
|
||||||
|
|
2
Makefile
2
Makefile
|
@ -15,6 +15,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: install ## Run the tests
|
tests: install ## Run the tests
|
||||||
venv/bin/pytest
|
venv/bin/pytest
|
||||||
|
djlint: install
|
||||||
|
venv/bin/djlint --ignore=H030,H031 --lint argos/server/templates/*html
|
||||||
|
|
||||||
help:
|
help:
|
||||||
@python3 -c "$$PRINT_HELP_PYSCRIPT" < $(MAKEFILE_LIST)
|
@python3 -c "$$PRINT_HELP_PYSCRIPT" < $(MAKEFILE_LIST)
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
<th>Status</th>
|
<th>Status</th>
|
||||||
<th>Severity</th>
|
<th>Severity</th>
|
||||||
<th>Context</th>
|
<th>Context</th>
|
||||||
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
{% for result in results %}
|
{% for result in results %}
|
||||||
|
|
|
@ -41,7 +41,8 @@ dev = [
|
||||||
"ipython>=8.16,<9",
|
"ipython>=8.16,<9",
|
||||||
"ipdb>=0.13,<0.14",
|
"ipdb>=0.13,<0.14",
|
||||||
"sphinx-autobuild",
|
"sphinx-autobuild",
|
||||||
"ruff==0.1.5,<1"
|
"ruff==0.1.5,<1",
|
||||||
|
"djlint>=1.34.0"
|
||||||
]
|
]
|
||||||
postgres = [
|
postgres = [
|
||||||
"psycopg2-binary>=2.9,<3",
|
"psycopg2-binary>=2.9,<3",
|
||||||
|
|
Loading…
Reference in a new issue