jenkins-bot has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1162346?usp=email )

Change subject: json: use tabs with i18n json files
......................................................................

json: use tabs with i18n json files

Change-Id: I11909277d79215462c45a47869556be66bf2f72f
---
M .pre-commit-config.yaml
M tests/i18n/test/de.json
M tests/i18n/test/en.json
M tests/i18n/test/fr.json
M tests/i18n/test/fy.json
M tests/i18n/test/ja.json
M tests/i18n/test/nl.json
7 files changed, 14 insertions(+), 17 deletions(-)

Approvals:
  Xqt: Looks good to me, approved
  jenkins-bot: Verified




diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index f3d0c2b..d5205e5 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -37,11 +37,8 @@
       - id: forbid-new-submodules
       - id: mixed-line-ending
       - id: pretty-format-json
-        args:
-          - --autofix
-          - --indent=4
-          - --no-ensure-ascii
-        exclude: pywikibot/scripts/i18n/pywikibot/
+        # list required for tab
+        args: ["--autofix", "--indent", "\t", "--no-ensure-ascii"]
       - id: trailing-whitespace
         args:
           - --markdown-linebreak-ext=rst
diff --git a/tests/i18n/test/de.json b/tests/i18n/test/de.json
index 3454b26..9f64979 100644
--- a/tests/i18n/test/de.json
+++ b/tests/i18n/test/de.json
@@ -1,4 +1,4 @@
 {
-    "test-multiple-plurals": "Bot: %(action)s %(line)s 
{{PLURAL:line|Zeile|Zeilen}} von {{PLURAL:%(page)d|einer|mehreren}} 
{{PLURAL:page|Seite|Seiten}}.",
-    "test-plural": "Bot: Ändere %(num)d {{PLURAL:num|Seite|Seiten}}."
+       "test-multiple-plurals": "Bot: %(action)s %(line)s 
{{PLURAL:line|Zeile|Zeilen}} von {{PLURAL:%(page)d|einer|mehreren}} 
{{PLURAL:page|Seite|Seiten}}.",
+       "test-plural": "Bot: Ändere %(num)d {{PLURAL:num|Seite|Seiten}}."
 }
diff --git a/tests/i18n/test/en.json b/tests/i18n/test/en.json
index f666f31..e7aa912 100644
--- a/tests/i18n/test/en.json
+++ b/tests/i18n/test/en.json
@@ -1,6 +1,6 @@
 {
-    "test-localized": "test-localized EN",
-    "test-non-localized": "test-non-localized EN",
-    "test-plural": "Bot: Changing %(num)s {{PLURAL:%(num)d|page|pages}}.",
-    "test-semi-localized": "test-semi-localized EN"
+       "test-localized": "test-localized EN",
+       "test-non-localized": "test-non-localized EN",
+       "test-plural": "Bot: Changing %(num)s {{PLURAL:%(num)d|page|pages}}.",
+       "test-semi-localized": "test-semi-localized EN"
 }
diff --git a/tests/i18n/test/fr.json b/tests/i18n/test/fr.json
index 369aba5..cc4448b 100644
--- a/tests/i18n/test/fr.json
+++ b/tests/i18n/test/fr.json
@@ -1,3 +1,3 @@
 {
-    "test-plural": "Robot: Changer %(descr)s {{PLURAL:num|une page|quelques 
pages}}."
+       "test-plural": "Robot: Changer %(descr)s {{PLURAL:num|une page|quelques 
pages}}."
 }
diff --git a/tests/i18n/test/fy.json b/tests/i18n/test/fy.json
index cb81bc8..e2dfdab 100644
--- a/tests/i18n/test/fy.json
+++ b/tests/i18n/test/fy.json
@@ -1,3 +1,3 @@
 {
-    "test-localized": "test-localized FY"
+       "test-localized": "test-localized FY"
 }
diff --git a/tests/i18n/test/ja.json b/tests/i18n/test/ja.json
index 740a637..211b411 100644
--- a/tests/i18n/test/ja.json
+++ b/tests/i18n/test/ja.json
@@ -1,3 +1,3 @@
 {
-    "test-no-english": "test-no-english JA"
+       "test-no-english": "test-no-english JA"
 }
diff --git a/tests/i18n/test/nl.json b/tests/i18n/test/nl.json
index 05b5af1..075b6e1 100644
--- a/tests/i18n/test/nl.json
+++ b/tests/i18n/test/nl.json
@@ -1,5 +1,5 @@
 {
-    "test-localized": "test-localized NL",
-    "test-plural": "Bot: Pas {{PLURAL:num|1 pagina|%(num)d pagina's}} aan.",
-    "test-semi-localized": "test-semi-localized NL"
+       "test-localized": "test-localized NL",
+       "test-plural": "Bot: Pas {{PLURAL:num|1 pagina|%(num)d pagina's}} aan.",
+       "test-semi-localized": "test-semi-localized NL"
 }

--
To view, visit 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1162346?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.wikimedia.org/r/settings?usp=email

Gerrit-MessageType: merged
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I11909277d79215462c45a47869556be66bf2f72f
Gerrit-Change-Number: 1162346
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to