Skip to content

Commit

Permalink
Add a makefile to conveniently run python tests
Browse files Browse the repository at this point in the history
Change-Id: I9b1bbc9b21d9292eac60715116f02533563fa606
Reviewed-by: Alexandru Croitor <[email protected]>
  • Loading branch information
gladhorn committed Oct 10, 2019
1 parent ec706c0 commit cac5946
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
14 changes: 14 additions & 0 deletions util/cmake/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@

test: flake8 mypy pytest

coverage:
pytest --cov .

flake8:
flake8 *.py --ignore=E501,E266,W503

pytest:
pytest

mypy:
mypy --pretty *.py
6 changes: 4 additions & 2 deletions util/cmake/Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ verify_ssl = true
name = "pypi"

[packages]
pytest = "*"
mypy = "*"
pyparsing = "*"
sympy = "*"
mypy = "*"
pytest = "*"
pytest-cov = "*"
flake8 = "*"

[dev-packages]

Expand Down
1 change: 1 addition & 0 deletions util/cmake/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
pytest; python_version >= '3.7'
pytest-cov; python_version >= '3.7'
mypy; python_version >= '3.7'
pyparsing; python_version >= '3.7'
sympy; python_version >= '3.7'
Expand Down

0 comments on commit cac5946

Please sign in to comment.