-
-
Notifications
You must be signed in to change notification settings - Fork 59
/
Makefile
44 lines (32 loc) · 823 Bytes
/
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
SHELL:=/usr/bin/env bash
build:
flit build
install:
flit install
extract_messages:
find src/wily -iname "*.py" | xargs xgettext -o src/wily/locales/messages.pot
find src/wily/locales -name \*.po -execdir msgmerge {} -U ../../../../../src/wily/locales/messages.pot \;
compile_messages:
find src/wily/locales -name \*.po -execdir msgfmt {} -o messages.mo \;
.PHONY: lint_python
lint_python:
ruff .
@# TODO(skarzi): fix type hints and require `mypy` to pass
mypy --install-types --non-interactive src || true
.PHONY: lint_formatting
lint_formatting:
black --check .
.PHONY: lint_spelling
lint_spelling:
codespell
.PHONY: lint_deps
lint_deps:
pip check
safety check --full-report
.PHONY: lint
lint: lint_python lint_formatting lint_spelling lint_deps
.PHONY: test
test:
pytest
.PHONY: ci
ci: lint test