Skip to content

Commit

Permalink
Make file added
Browse files Browse the repository at this point in the history
  • Loading branch information
flaviussn committed Jan 17, 2020
1 parent ebef6c4 commit f75ae11
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 1 deletion.
26 changes: 26 additions & 0 deletions Makefile
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
9 changes: 9 additions & 0 deletions requirements-dev.txt
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
17 changes: 17 additions & 0 deletions setup.cfg
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
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"scikit-learn",
"seqeval",
"tensorboardx",
"wandb"
"wandb",
"pandas",
],
)

0 comments on commit f75ae11

Please sign in to comment.