From e24c05bb3de5f37d1f349589bdc480f84211ad80 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Sun, 19 May 2024 13:07:23 +0300 Subject: [PATCH] .pre-commit-config.yaml: move json to prettier for cod{e,ium} compatibility --- .pre-commit-config.yaml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1b871552..9e13ee91 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -49,14 +49,15 @@ repos: - id: fix-byte-order-marker - id: mixed-line-ending args: [--fix=auto] - - id: pretty-format-json + # Remember to check that prettier excludes it, if used! + #- id: pretty-format-json # Breaks AdNauseam/uBlock Origin rules as the browser interprets # values to be set for empty options. #exclude: ^etc\/firefox\/policies\/policies.json|etc\/opt\/chromium\/policies\/managed\/aminda-extensions.json$ - args: - # Remember also: --no-sort-keys - # ASCII excludes the älphäbet amongst others - [--autofix, --no-ensure-ascii] + #args: + # Remember also: --no-sort-keys + # ASCII excludes the älphäbet amongst others + #[--autofix, --no-ensure-ascii] #- id: requirements-txt-fixer # Synchronize dependencies between this file and package managers @@ -133,8 +134,8 @@ repos: rev: "v3.2.5" hooks: - id: prettier - # These are handled by Black below or pretty-format-json above - exclude_types: [python, pyi, jupyter, json] + # These are handled by Black below + exclude_types: [python, pyi, jupyter] additional_dependencies: [ # https://www.npmjs.com/package/prettier "prettier@3.2.5",