No more debate on style formatting, prettier is an opinionated
style formatter that will automatically format to the right
style.
Signed-off-by: Thanh Ha <zxiiro@gmail.com>
Change-Id: If9aae2087c3299ae5d54728cd17d86c2b0dcb8a0
shell = bash
indent_size = 4
use_spaces = yeah
-
-[all.YAML]
-bears = YAMLLintBear
-files = **.yaml, **.yml
-document_start = True
-yamllint_config = yamllint.conf
-
--- /dev/null
+---
+repos:
+ - repo: https://github.com/pre-commit/pre-commit-hooks
+ rev: v2.2.1
+ hooks:
+ - id: trailing-whitespace
+
+ - repo: https://github.com/prettier/prettier
+ rev: 1.18.2
+ hooks:
+ - id: prettier
jjb,
jjb-compare-xml,
jjb-latest,
- jjb-version
- license
+ jjb-version,
+ license,
+ pre-commit
skipsdist = true
passenv = TOX_WORK_DIR
toxworkdir = {env:TOX_WORK_DIR:/tmp/v}
deps = lftools
commands = lftools license check-dir -r '.+' shell
+[testenv:pre-commit]
+deps = pre-commit
+commands =
+ pre-commit run --all-files
+
#########
# Tools #
#########