forked from ThilinaRajapakse/simpletransformers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
38 lines (30 loc) · 1.11 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
36
37
38
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
test-lm: clean
pytest tests/language_modeling --cov simpletransformers/language_modeling
# if this runs through we can be sure the readme is properly shown on pypi
check-readme:
python setup.py check --restructuredtext