Skip to content

Update .pre-commit-config.yaml #701

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 20, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
some proress
  • Loading branch information
clacri committed Aug 18, 2020
commit 624a6a667e409e99ecf8bf36c6e4bc43788314d8
10 changes: 4 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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']
2 changes: 1 addition & 1 deletion library/unittest.mock-examples.po
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 2 additions & 0 deletions scripts/merge-dicts.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
awk 1 dict dictionaries/*.txt > dict.txt