Skip to content

Commit

Permalink
Merge pull request #51 from mookerji/python-reqs
Browse files Browse the repository at this point in the history
Python nonsense.
  • Loading branch information
mfine committed Mar 24, 2015
2 parents b0773d8 + f495ad3 commit 1745060
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 2 deletions.
24 changes: 24 additions & 0 deletions python/.coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
[run]
branch = True
include = sbp/*

[report]
exclude_lines =
# Have to re-enable the standard pragma
pragma: no cover

# Don't complain about missing debug-only code:
def __repr__
if self\.debug

# Don't complain if non-runnable code isn't run:
if 0:
if __name__ == .__main__.:

ignore_errors = True

[omit]
omit =
tests/*
limbo/*
data/*
6 changes: 4 additions & 2 deletions python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@ pip install libsbp

## Usage

```python
```shell
# To run the tests and check for coverage:
py.test -v --cov sbp tests/
```

## LICENSE

Copyright © 2015 Swift Navigation

Distributed under LGPLv3.0.
Distributed under LGPLv3.0.
13 changes: 13 additions & 0 deletions python/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
construct==2.5.2
cov-core==1.15.0
coverage==3.7.1
flake8==2.3.0
futures==2.2.0
pep8==1.5.7
pyftdi==0.6.3
pylibftdi==0.14.2
pyserial==2.7
pytest==2.6.4
pytest-cov==1.8.1
tox==1.8.1
virtualenv==1.11.6
16 changes: 16 additions & 0 deletions python/tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[tox]
envlist = py27

[testenv]
deps =
pytest
-rrequirements.txt
commands = py.test -v --cov sbp tests/
sitepackages = False
usedevelop = True

[flake8]
ignore = E126,E127,E111
max-line-length = 100
exclude = tests/*,limbo/*
max-complexity = 10

0 comments on commit 1745060

Please sign in to comment.