-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Name in transfers * Unit test * more test and cassettes * reciever -> recipient * Travis + coveralls * coveralls in setup * Lint * count and all * Increase coverage * Fix Test * Fix Test * full .travis.yml * fix * github action * ci and cd * remove travis * implicitly return None * full typing for Generator * api should _always_ return the network * configure once * Fix Tests * Fix Tests * up coverage * codecov * fix * Remove ApiKey.roll and modify test * fix lint * CD on release event * CD action * Minor changes * Format CD * Enocde enum values in query url * Coverage * better way to pre-process for Queryable.all() * fix lint * More transfer tests * Remove Id in tests * Add Query validators * change version * more descriptive exceptions * most style changes and cleaning up a few items * these file names make more sense * useful comment * update Makefile and add mypy * more reasonable names * resolve method signature issue and improve docstring * cleaner * block mypy for now. will add it back later Co-authored-by: Felipe López <[email protected]> Co-authored-by: Matin Tamizi <[email protected]>
- Loading branch information
1 parent
04689e1
commit 1381e45
Showing
39 changed files
with
2,033 additions
and
117 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,9 @@ | ||
codecov: | ||
require_ci_to_pass: yes | ||
|
||
coverage: | ||
precision: 2 | ||
range: [95, 100] | ||
|
||
comment: | ||
layout: 'header, diff, flags, files, footer' |
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 @@ | ||
name: release | ||
|
||
on: release | ||
|
||
jobs: | ||
publish-pypi: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Set up Python 3.8 | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.8 | ||
- name: Install dependencies | ||
run: pip install -qU setuptools wheel twine | ||
- name: Generating distribution archives | ||
run: python setup.py sdist bdist_wheel | ||
- name: Publish distribution 📦 to PyPI | ||
if: startsWith(github.event.ref, 'refs/tags') | ||
uses: pypa/gh-action-pypi-publish@master | ||
with: | ||
password: ${{ secrets.pypi_password }} |
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
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,41 +1,51 @@ | ||
SHELL := bash | ||
PATH := ./venv/bin:${PATH} | ||
PYTHON=python3.7 | ||
PROJECT=cuenca | ||
PYTHON = python3.7 | ||
PROJECT = cuenca | ||
isort = isort -rc -ac $(PROJECT) tests setup.py | ||
black = black -S -l 79 --target-version py37 $(PROJECT) tests setup.py | ||
black = black -S -l 79 --target-version py38 $(PROJECT) tests setup.py | ||
|
||
|
||
all: test | ||
|
||
venv: | ||
$(PYTHON) -m venv --prompt $(PROJECT) venv | ||
pip install -qU pip | ||
$(PYTHON) -m venv --prompt $(PROJECT) venv | ||
pip install -qU pip | ||
|
||
install-test: | ||
pip install -q .[test] | ||
pip install -q .[test] | ||
|
||
test: clean install-test lint | ||
python setup.py test | ||
python setup.py test | ||
|
||
format: | ||
$(isort) | ||
$(black) | ||
$(isort) | ||
$(black) | ||
|
||
lint: | ||
flake8 $(PROJECT) tests setup.py | ||
$(isort) --check-only | ||
$(black) --check | ||
flake8 $(PROJECT) tests setup.py | ||
$(isort) --check-only | ||
$(black) --check | ||
# mypy $(PROJECT) tests | ||
|
||
clean: | ||
find . -name '*.pyc' -exec rm -f {} + | ||
find . -name '*.pyo' -exec rm -f {} + | ||
find . -name '*~' -exec rm -f {} + | ||
rm -rf build dist $(PROJECT).egg-info | ||
rm -rf `find . -name __pycache__` | ||
rm -f `find . -type f -name '*.py[co]' ` | ||
rm -f `find . -type f -name '*~' ` | ||
rm -f `find . -type f -name '.*~' ` | ||
rm -rf .cache | ||
rm -rf .pytest_cache | ||
rm -rf .mypy_cache | ||
rm -rf htmlcov | ||
rm -rf *.egg-info | ||
rm -f .coverage | ||
rm -f .coverage.* | ||
rm -rf build | ||
rm -rf dist | ||
|
||
release: clean | ||
python setup.py sdist bdist_wheel | ||
twine upload dist/* | ||
python setup.py sdist bdist_wheel | ||
twine upload dist/* | ||
|
||
|
||
.PHONY: all install-test test format lint clean release | ||
.PHONY: all install-test test format lint clean release |
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
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
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
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
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
Oops, something went wrong.