mirror of
https://github.com/shirayu/whispering.git
synced 2024-11-14 12:41:25 +00:00
30 lines
816 B
Makefile
30 lines
816 B
Makefile
|
|
all: lint_node lint_python
|
|
|
|
TARGET_DIRS:=./whisper_streaming
|
|
|
|
flake8:
|
|
find $(TARGET_DIRS) | grep '\.py$$' | xargs flake8
|
|
black:
|
|
find $(TARGET_DIRS) | grep '\.py$$' | xargs black --diff | diff /dev/null -
|
|
isort:
|
|
find $(TARGET_DIRS) | grep '\.py$$' | xargs isort --diff | diff /dev/null -
|
|
pydocstyle:
|
|
find $(TARGET_DIRS) | grep -v tests | xargs pydocstyle --ignore=D100,D101,D102,D103,D104,D105,D107,D203,D212
|
|
|
|
yamllint:
|
|
find . \( -name node_modules -o -name .venv \) -prune -o -type f -name '*.yml' -print \
|
|
| xargs yamllint --no-warnings
|
|
|
|
lint_python: flake8 black isort pydocstyle
|
|
|
|
|
|
pyright:
|
|
npx pyright
|
|
|
|
markdownlint:
|
|
find . -type d \( -name node_modules -o -name .venv \) -prune -o -type f -name '*.md' -print \
|
|
| xargs npx markdownlint --config ./.markdownlint.json
|
|
|
|
lint_node: markdownlint pyright
|
|
|