Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python nonsense. #51

Merged
merged 1 commit into from
Mar 24, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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