-
Notifications
You must be signed in to change notification settings - Fork 18
/
Makefile
57 lines (41 loc) · 1.41 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
.PHONY: all test check testloop clean localization package
all: test check
test:
python --version
python -m pytest tests/
isort:
isort duden tests run_duden.py
black:
black .
pylint:
pylint duden/ tests/ run_duden.py
autoformat: isort black
check: pylint
testloop:
while inotifywait -q -r -e modify --exclude .git .; do \
clear; make; \
done
clean:
rm -rf duden/__pycache__ tests/__pycache__ dist/ duden.egg-info/ build/
localization:
./duden/locale/build.sh
package: localization
poetry build
pypi-publish-test: package
poetry publish -r test-pypi
pypi-publish: package
poetry publish
completions-install-bash:
cp completions/duden /etc/bash_completion.d/ || echo "You may need to use sudo to copy to /etc/bash_completion.d"
completions-install-fish:
cp completions/duden.fish ~/.config/fish/completions/
update-test-data:
./run_duden.py --export Barmherzigkeit > tests/test_data/Barmherzigkeit.yaml
./run_duden.py --export Feiertag > tests/test_data/Feiertag.yaml
./run_duden.py --export laufen > tests/test_data/laufen.yaml
./run_duden.py --export Qat > tests/test_data/Qat.yaml
./run_duden.py --export Kragen > tests/test_data/Kragen.yaml
./run_duden.py --export Petersilie > tests/test_data/Petersilie.yaml
./run_duden.py --export einfach -r1 > tests/test_data/einfach.yaml
./run_duden.py --export Keyboard > tests/test_data/Keyboard.yaml
./run_duden.py --export Meme > tests/test_data/Meme.yaml