forked from ThilinaRajapakse/simpletransformers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
35 lines (28 loc) · 1.02 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
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 {} +
clean-test:
-rm -r .coverage*
-rm -r data
-rm -r runs
-rm -r outputs
-rm -r cache_dir
-rm -r wandb
-rm train.txt
formatter:
black --line-length 119 simpletransformers tests --exclude simpletransformers/experimental\
lint: clean
flake8 simpletransformers tests --exclude=simpletransformers/experimental
black --check --line-length 119 . 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 simpletransformers/language_modeling simpletransformers/t5 simpletransformers/seq2seq
# if this runs through we can be sure the readme is properly shown on pypi
check-readme:
python setup.py check --restructuredtext