No more debate on which style to use, prettier is an opinionated
style formatter for JSON and YAML files.
Also standardize the pre-commit env name with other lfit projects.
Signed-off-by: Thanh Ha <zxiiro@gmail.com>
Change-Id: I2655382ba6fb099970418475ad4cf939b11752e5
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
- rev: v1.3.0
+ rev: v2.2.1
hooks:
- id: trailing-whitespace
+
+ - repo: https://github.com/prettier/prettier
+ rev: 1.18.2
+ hooks:
+ - id: prettier
[tox]
minversion = 1.6
envlist =
- check-hooks,
- coala
+ coala,
+ pre-commit
skipsdist = true
-[testenv:check-hooks]
-deps = pre-commit~=1.11.2
-commands =
- pre-commit install
- pre-commit run --all-files
-
[testenv:coala]
basepython = python3
deps =
deps = -rrequirements.txt
commands = sphinx-build -W -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck
+[testenv:pre-commit]
+deps = pre-commit
+commands =
+ pre-commit install
+ pre-commit run --all-files
+
[testenv:reno]
deps = -rdocs/requirements.txt
commands = reno {posargs:--help}