From f936e1c283709505280e357102bbe2d9f469c7bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Claudia=20Mill=C3=A1n?= Date: Tue, 18 Aug 2020 16:08:52 +0200 Subject: [PATCH 1/3] Update .pre-commit-config.yaml --- .pre-commit-config.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ca16be657c..874f93d764 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,6 +3,14 @@ repos: rev: master hooks: - id: powrap +- repo: local + hooks: + - id: merge-dicts + - name: merge-dicts + - entry: bash -c 'awk 1 dict dictionaries/*.txt > dict.txt' + # from the example + # - entry: bash -c 'lines=$(pylint api/ | wc -l) && (( lines > 10)) && exit 1' + # - language: system # This one requires package ``hunspell-es_es`` in Archlinux - repo: https://github.com/humitos/pospell rev: pre-commit From 624a6a667e409e99ecf8bf36c6e4bc43788314d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Claudia=20Mill=C3=A1n?= Date: Tue, 18 Aug 2020 16:46:33 +0200 Subject: [PATCH 2/3] some proress --- .pre-commit-config.yaml | 10 ++++------ library/unittest.mock-examples.po | 2 +- scripts/merge-dicts.sh | 2 ++ 3 files changed, 7 insertions(+), 7 deletions(-) create mode 100755 scripts/merge-dicts.sh diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 874f93d764..34241e5169 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -6,14 +6,12 @@ repos: - repo: local hooks: - id: merge-dicts - - name: merge-dicts - - entry: bash -c 'awk 1 dict dictionaries/*.txt > dict.txt' - # from the example - # - entry: bash -c 'lines=$(pylint api/ | wc -l) && (( lines > 10)) && exit 1' - # - language: system + name: merge-dicts + entry: ./scripts/merge-dicts.sh + language: script # This one requires package ``hunspell-es_es`` in Archlinux - repo: https://github.com/humitos/pospell rev: pre-commit hooks: - id: pospell - args: ['--personal-dict', 'dict', '--modified', '--language', 'es_ES', '--language', 'es_AR'] + args: ['--personal-dict', 'dict.txt', '--modified', '--language', 'es_ES', '--language', 'es_AR'] diff --git a/library/unittest.mock-examples.po b/library/unittest.mock-examples.po index 8e36f78fd7..fc6926e914 100644 --- a/library/unittest.mock-examples.po +++ b/library/unittest.mock-examples.po @@ -26,7 +26,7 @@ msgstr "" #: ../Doc/library/unittest.mock-examples.rst:27 msgid "Using Mock" -msgstr "" +msgstr "Usando Mock" #: ../Doc/library/unittest.mock-examples.rst:30 msgid "Mock Patching Methods" diff --git a/scripts/merge-dicts.sh b/scripts/merge-dicts.sh new file mode 100755 index 0000000000..b96943aeff --- /dev/null +++ b/scripts/merge-dicts.sh @@ -0,0 +1,2 @@ +#!/bin/bash +awk 1 dict dictionaries/*.txt > dict.txt From 9db311521f5aa8159ebcb4a41dc27e5d1b2516c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Claudia=20Mill=C3=A1n?= Date: Wed, 19 Aug 2020 10:07:31 +0200 Subject: [PATCH 3/3] added the dictionary --- dictionaries/library_unittest.mock-examples.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 dictionaries/library_unittest.mock-examples.txt diff --git a/dictionaries/library_unittest.mock-examples.txt b/dictionaries/library_unittest.mock-examples.txt new file mode 100644 index 0000000000..f1dc1e3424 --- /dev/null +++ b/dictionaries/library_unittest.mock-examples.txt @@ -0,0 +1 @@ +Mock