From 2bd5b870c13d2785a3ff7177647f307e9ff3e58a Mon Sep 17 00:00:00 2001 From: Benjamin Klimczak Date: Wed, 15 Nov 2023 12:58:02 +0000 Subject: Add linters/checkers for TOML files to pre-commits Change-Id: I8a228cbab405b4d4112e5e38856b3cb92304cba7 Signed-off-by: Benjamin Klimczak --- .pre-commit-config.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to '.pre-commit-config.yaml') diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 57ef192..81e0acb 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,6 +15,8 @@ repos: hooks: - id: check-yaml + - id: check-toml + - id: end-of-file-fixer - id: trailing-whitespace @@ -93,6 +95,12 @@ repos: - id: bandit args: ["--skip", "B101"] +- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks + rev: v2.11.0 + hooks: + - id: pretty-format-toml + args: [--autofix, "--no-sort", --indent, "4"] + - repo: local hooks: - id: mypy -- cgit v1.2.1