-
Notifications
You must be signed in to change notification settings - Fork 727
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
54 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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: | ||
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 | ||
|
||
# if this runs through we can be sure the readme is properly shown on pypi | ||
check-readme: | ||
python setup.py check --restructuredtext --strict |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# test | ||
pytest-cov==2.7.1 | ||
pytest-localserver==0.5.0 | ||
pytest==5.1.3 | ||
|
||
# lint/format/types | ||
black==19.10b0 | ||
flake8==3.7.8 | ||
pytype==2019.7.11 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
[tool:pytest] | ||
python_functions=test_ | ||
|
||
codestyle_max_line_length = 88 | ||
|
||
log_cli = true | ||
log_cli_level = WARNING | ||
|
||
[metadata] | ||
description-file = README.md | ||
license_file = LICENSE.txt | ||
|
||
[pycodestyle] | ||
max-line-length = 88 | ||
|
||
[flake8] | ||
max-line-length = 88 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,6 +31,7 @@ | |
"scikit-learn", | ||
"seqeval", | ||
"tensorboardx", | ||
"wandb" | ||
"wandb", | ||
"pandas", | ||
], | ||
) |