forked from ThilinaRajapakse/simpletransformers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
26 lines (20 loc) · 808 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
install:
pip install -e .
pip install -r requirements-dev.txt
pip list
clean:
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +
find . -name '*~' -exec rm -f {} +
formatter:
black simpletransformers tests --exclude simpletransformers/experimental\
lint: clean
flake8 simpletransformers tests --exclude=simpletransformers/experimental
black --check simpletransformers tests --exclude simpletransformers/experimental
types:
pytype --keep-going simpletransformers --exclude simpletransformers/experimental
test: clean
pytest tests --cov simpletransformers/classification simpletransformers/ner simpletransformers/question_answering
# if this runs through we can be sure the readme is properly shown on pypi
check-readme:
python setup.py check --restructuredtext