Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 34a8ed3

Browse files
authored
Merge pull request #360 from python/dont_sort_dict
remove the requirement to sort the dict file.
2 parents d7c9255 + 50e9efd commit 34a8ed3

File tree

4 files changed

+16
-26
lines changed

4 files changed

+16
-26
lines changed

.pre-commit-config.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,3 @@ repos:
99
hooks:
1010
- id: pospell
1111
args: ['--personal-dict', 'dict', '--modified', '--language', 'es_ES', '--language', 'es_AR']
12-
- repo: https://github.com/pre-commit/pre-commit-hooks
13-
rev: v2.5.0
14-
hooks:
15-
- id: file-contents-sorter
16-
files: dict

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ install:
1111
script:
1212
- powrap --check --quiet **/*.po
1313
- pospell -p dict -l es_AR -l es_ES **/*.po
14+
- make dict_dups
1415
- make build
1516
branches:
1617
only:

Makefile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ help:
3131
@echo " spell Check spelling"
3232
@echo " wrap Wrap all the PO files to a fixed column width"
3333
@echo " progress To compute current progression on the tutorial"
34+
@echo " dict_dups Check duplicated entries on the dict"
3435
@echo ""
3536

3637

@@ -94,3 +95,17 @@ spell: venv
9495
.PHONY: wrap
9596
wrap: venv
9697
$(VENV)/bin/powrap **/*.po
98+
99+
.PHONY: dict_dups
100+
SHELL:=/bin/bash
101+
.ONESHELL:
102+
dict_dups:
103+
if [[ $$(cat dict| sort | uniq -dc) ]]; then\
104+
echo -e "\n\n\n ####################### \n\n\n"
105+
echo "duplicated lines in the dict file"
106+
uniq -dc dict
107+
exit 1
108+
else
109+
echo "no duplicated lines"
110+
exit 0
111+
fi

dict

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ Cookbook
2626
Ctrl
2727
Cython
2828
Distutils
29-
Distutils
3029
FLTK
3130
Fibonacci
3231
Finder
@@ -42,7 +41,6 @@ Gtk+
4241
HTML
4342
Hammond
4443
Hat
45-
Hat
4644
Henstridge
4745
Hewlett
4846
Hugunin
@@ -66,7 +64,6 @@ Mac
6664
MacOS
6765
Macintosh
6866
Mandrake
69-
Mandrake
7067
Mark
7168
Microsoft
7269
Mitch
@@ -106,10 +103,8 @@ SciPy
106103
SimpleFileExFlags
107104
Smalltalk
108105
Solaris
109-
Solaris
110106
Spot
111107
Stein
112-
subdirectorios
113108
TCP
114109
Tcl
115110
Tix
@@ -144,7 +139,6 @@ backspace
144139
bash
145140
batch
146141
bdist
147-
bdist
148142
big-endian
149143
bloqueante
150144
booleano
@@ -183,14 +177,11 @@ criptográficamente
183177
curses
184178
customización
185179
customizarlo
186-
códec
187180
datagramas
188181
debugueando
189182
default
190183
desasignar
191-
descompresor
192184
deserialización
193-
deserializar
194185
desreferenciar
195186
desalojable
196187
desambiguar
@@ -203,11 +194,7 @@ descargable
203194
desasignarán
204195
desasignador
205196
desasignadores
206-
descargable
207-
desasignada
208-
descargable
209197
descompresor
210-
deserialización
211198
deserializar
212199
desinstalador
213200
designadores
@@ -342,28 +329,21 @@ naif
342329
nonlocal
343330
object
344331
obsérvese
345-
option
346332
or
347333
ordenables
348334
path
349335
pathlib
350336
multiprocesamiento
351337
mutex
352338
mxBase
353-
mxBase
354339
naíf
355340
naífs
356341
ncurses
357-
nonlocal
358342
normalización
359-
object
360343
operando
361-
operandos
362344
onexit
363-
operandos
364345
option
365346
operandos
366-
or
367347
os
368348
pads
369349
parsea
@@ -439,7 +419,6 @@ script
439419
scripting
440420
scripts
441421
sdux
442-
sdux
443422
search
444423
secuencialmente
445424
seguirle

0 commit comments

Comments
 (0)