-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from jiosue/dev
Merge development to master for new release, v0.0.2
- Loading branch information
Showing
101 changed files
with
16,782 additions
and
1,937 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.