aboutsummaryrefslogtreecommitdiff
path: root/apheleia-formatters.el
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2023-12-15 04:04:19 +0200
committerGitHub <noreply@github.com>2023-12-14 18:04:19 -0800
commit41dff902fb56cc011d1e694045755796d5e3e27d (patch)
tree48a81fbf30bcefdf59ceef324439cee587473501 /apheleia-formatters.el
parenta38279566a82c39253973e49a2a56634ded50212 (diff)
Add support for JSON with `python3 -m json.tool` (#257)
https://docs.python.org/3/library/json.html#module-json.tool
Diffstat (limited to 'apheleia-formatters.el')
-rw-r--r--apheleia-formatters.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/apheleia-formatters.el b/apheleia-formatters.el
index 2446b0e..26c0a07 100644
--- a/apheleia-formatters.el
+++ b/apheleia-formatters.el
@@ -150,6 +150,9 @@
(robotidy . ("robotidy" "--no-color" "-"
(apheleia-formatters-indent nil "--indent")
(apheleia-formatters-fill-column "--line-length")))
+ (python3-json
+ . ("python3" "-m" "json.tool"
+ (apheleia-formatters-indent "--tab" "--indent")))
(rubocop . ("rubocop" "--stdin" filepath "--auto-correct"
"--stderr" "--format" "quiet" "--fail-level" "fatal"))
(ruby-standard . ("standardrb" "--stdin" filepath "--fix" "--stderr"