Skip to content

Commit

Permalink
update project configuration files
Browse files Browse the repository at this point in the history
  • Loading branch information
SillyFreak committed Oct 29, 2018
1 parent 1eb958a commit 42a078e
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 13 deletions.
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
# general things to ignore
build/
dist/
.mypy_cache/
*.egg-info/
*.egg
*.py[cod]
__pycache__/
*.so
*~

# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.cache
nosetests.xml
coverage.xml
19 changes: 11 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
language: python

# using container based testing is faster, but you can't use sudo
sudo: false

python:
- "3.6"
- "2.7"
- "3.6"
matrix:
include:
- python: 3.7
dist: xenial # https://github.com/travis-ci/travis-ci/issues/9815
sudo: true

# install other libraries using pip
install:
- pip install -U setuptools
- pip install -Ue .
- pip install -U setuptools coveralls
- pip install -Ue .[dev]

# command to run tests
script: nosetests -vw tests
script:
- pytest
- coveralls
26 changes: 26 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[tool:pytest]
addopts =
--doctest-modules --strict
--cov hedgehog.platform --cov-report html --cov-report term
console_output_style = classic
timeout = 0.5

[coverage:run]
branch = True

[coverage:report]
exclude_lines =
pragma: nocover
raise NotImplemented

[mypy]
python_version = 3.7
incremental = True
ignore_missing_imports = True
;disallow_untyped_defs = True
check_untyped_defs = True
warn_return_any = True
warn_redundant_casts = True

[aliases]
test = pytest
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
# You can install these using the following syntax, for example:
# $ pip install -e .[dev,test]
extras_require={
'dev': ['pytest', 'pytest-runner', 'pytest-asyncio', 'pytest-cov', 'pytest-timeout', 'mypy'],
'raspberry': ['RPi.GPIO', 'pyserial'],
},

Expand Down
5 changes: 0 additions & 5 deletions tests/test.py

This file was deleted.

5 changes: 5 additions & 0 deletions tests/test_platform.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import pytest


def test():
assert True

0 comments on commit 42a078e

Please sign in to comment.