Skip to content

Commit

Permalink
Add few testing helpers for bash
Browse files Browse the repository at this point in the history
  • Loading branch information
petr-muller committed Feb 13, 2018
1 parent a5582df commit 7f2a195
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
7 changes: 7 additions & 0 deletions fast-setup.cfg
@@ -0,0 +1,7 @@
[aliases]
test=pytest

[tool:pytest]

[mypy]
ignore_missing_imports = True
13 changes: 13 additions & 0 deletions helpers.sh
@@ -0,0 +1,13 @@
example() {
pyff tests/examples/$1*.old tests/examples/$1*.new
}

ft() {
cat fast-setup.cfg > setup.cfg
python setup.py test
}

st() {
cat strict-setup.cfg > setup.cfg
python setup.py test
}
8 changes: 8 additions & 0 deletions strict-setup.cfg
@@ -0,0 +1,8 @@
[aliases]
test=pytest

[tool:pytest]
addopts = --pylint --pylint-rcfile=.pylintrc --mypy --cov=pyff --cov-report=xml --cov-report=term --cov-report=html

[mypy]
ignore_missing_imports = True

0 comments on commit 7f2a195

Please sign in to comment.