summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2023-09-08 04:24:06 +0200
committerGitHub <noreply@github.com>2023-09-07 22:24:06 -0400
commit3c0c27965836328abd2668dcd77710ee2460535e (patch)
tree57302ecf1c5619be185d888e91c1bd876cf9942e /Makefile
parentf9abb6ade28d49f00f28623d172b5a8ed27f4509 (diff)
downloadgitea-3c0c27965836328abd2668dcd77710ee2460535e.tar.gz
gitea-3c0c27965836328abd2668dcd77710ee2460535e.zip
Add `yamllint` (#26965)
So that https://github.com/go-gitea/gitea/pull/26964 does not happen again. Merge this after that PR. Config is based on [node's](https://github.com/nodejs/node/blob/main/.yamllint.yaml). --------- Co-authored-by: techknowlogick <techknowlogick@gitea.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 908ee7a337..fd852cbaf9 100644
--- a/Makefile
+++ b/Makefile
@@ -218,6 +218,7 @@ help:
@echo " - lint-md lint markdown files"
@echo " - lint-swagger lint swagger files"
@echo " - lint-templates lint template files"
+ @echo " - lint-yaml lint yaml files"
@echo " - checks run various consistency checks"
@echo " - checks-frontend check frontend files"
@echo " - checks-backend check backend files"
@@ -427,6 +428,10 @@ lint-actions:
lint-templates: .venv
@poetry run djlint $(shell find templates -type f -iname '*.tmpl')
+.PHONY: lint-yaml
+lint-yaml: .venv
+ @poetry run yamllint .
+
.PHONY: watch
watch:
@bash build/watch.sh