Skip to content

Commit

Permalink
Merge pull request #2 from jiosue/dev
Browse files Browse the repository at this point in the history
Merge development to master for new release, v0.0.2
  • Loading branch information
Joseph T. Iosue authored Sep 9, 2019
2 parents 5756b9c + 4075908 commit b45e03f
Show file tree
Hide file tree
Showing 101 changed files with 16,782 additions and 1,937 deletions.
20 changes: 20 additions & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# copied from https://github.com/uber-go/config/blob/master/.codecov.yml

coverage:
range: 80..100
round: down
precision: 2

status:
project: # measuring the overall project coverage
default: # context, you can create multiple ones with custom titles
enabled: yes # must be yes|true to enable this status
target: 90 # specify the target coverage for each commit status
# option: "auto" (must increase from parent commit or pull request base)
# option: "X%" a static target percentage to hit
threshold: null # allowed to drop X% and still result in a "success" commit status
if_not_found: success # if parent is not found report status as success, error, or failure
if_ci_failed: error # if ci fails report status as success, error, or failure
patch:
default:
enabled: no
23 changes: 23 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
[run]
include = qubovert/*
branch = True

[report]
# Regexes for lines to exclude from consideration
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 tests don't hit defensive assertion code:
raise AssertionError
raise NotImplementedError

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

ignore_errors = True
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# windows testing batch file
runtests.bat

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
Expand Down
22 changes: 11 additions & 11 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
language: python

#python:
# - 3.6
python:
- "3.6"
- "3.7"
- "3.7-dev"
# - "3.8-dev"

install:
# - pip install -r requirements.txt
- pip install -r requirements-dev.txt
- pip install -e .
- make install

script:
- pydocstyle convention=numpy qubovert
- pytest --codestyle --ignore=docs
# I think pytest --codestyle also runs all the tests, but just in case ...
- pytest
- python setup.py sdist bdist_wheel
- twine check dist/*
- make test

after_script:
- make submitcoverage
- make clean
22 changes: 22 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
python_cmd := python
virtualenv_cmd := $(python_cmd) -m venv

clean:
rm -rf venv-dev
rm -rf dist
rm -rf build
rm -rf qubovert.egg-info

install:
$(virtualenv_cmd) venv-dev
. venv-dev/bin/activate && pip install -r requirements-dev.txt
. venv-dev/bin/activate && pip install -e .

test:
. venv-dev/bin/activate && python -m pydocstyle convention=numpy qubovert
. venv-dev/bin/activate && python -m pytest --codestyle --cov=./
. venv-dev/bin/activate && python setup.py sdist bdist_wheel
. venv-dev/bin/activate && python -m twine check dist/*

submitcoverage:
python -m codecov
Loading

0 comments on commit b45e03f

Please sign in to comment.