-
Notifications
You must be signed in to change notification settings - Fork 250
/
Makefile
37 lines (27 loc) · 889 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
.PHONY: clean-build clean-py clean-test clean check-tests check-lint check-types check build download
clean-build:
rm -rf dist build .egg .eggs **/*.egg-info
clean-py:
find . -type f -name '*.py[co]' -delete
find . -type d -name "__pycache__" -delete
clean-test:
rm -f .coverage
rm -f .coverage.*
clean: clean-build clean-py clean-test
check-tests: clean-test
python -m pytest tests --verbose --cov=textacy --cov-report=term-missing
check-lint:
python -m black --diff src
python -m isort --diff src
python -m ruff check src
check-types:
python -m mypy src
check: check-tests check-lint check-types
build: clean-build
python -m build --sdist --wheel
download:
python -m spacy download en_core_web_sm
python -m spacy download es_core_news_sm
python -m spacy validate
python -m textacy download capitol_words
python -m textacy download lang_identifier --version 3.0