-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changes done: - python3 compatible - black autoformat - isort import order - pipenv for dependency management - migrate from deprecated travis-ci.org to circleci
- Loading branch information
Showing
22 changed files
with
1,022 additions
and
574 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,74 @@ | ||
version: 2 | ||
references: | ||
restore_caches: &restore_caches | ||
restore_cache: | ||
keys: | ||
- source-{{ .Branch }} | ||
- deps-{{ .Branch }}-{{ checksum "Pipfile.lock" }} | ||
install_deps: &install_deps | ||
run: | ||
name: Install dependencies | ||
command: | | ||
pipenv install --dev --ignore-pipfile --deploy | ||
jobs: | ||
build: | ||
docker: | ||
- image: circleci/python:3.7.2 | ||
|
||
steps: | ||
- checkout | ||
- *restore_caches | ||
- *install_deps | ||
- save_cache: | ||
key: source-{{ .Branch }} | ||
paths: | ||
- ".git" | ||
- save_cache: | ||
key: deps-{{ .Branch }}-{{ checksum "Pipfile.lock" }} | ||
paths: | ||
- "/home/circleci/.local/share/virtualenvs/" | ||
lint: | ||
docker: | ||
- image: circleci/python:3.7.2 | ||
|
||
steps: | ||
- checkout | ||
- *restore_caches | ||
- *install_deps | ||
- run: | ||
name: Black autoformat check | ||
command: | | ||
pipenv run black --check . | ||
- run: | ||
name: Isort import order check | ||
command: | | ||
pipenv run isort -c | ||
test: | ||
docker: | ||
- image: circleci/python:3.7.2 | ||
|
||
steps: | ||
- checkout | ||
- *restore_caches | ||
- *install_deps | ||
- run: | ||
name: Unit tests | ||
command: | | ||
pipenv run py.test | ||
- run: | ||
name: Coverage upload | ||
command: | | ||
pipenv run coveralls | ||
workflows: | ||
version: 2 | ||
build_test: | ||
jobs: | ||
- build | ||
- lint: | ||
requires: | ||
- build | ||
- test: | ||
requires: | ||
- build |
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,5 @@ | ||
[run] | ||
branch = True | ||
|
||
[report] | ||
fail_under = 100 |
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,4 @@ | ||
[flake8] | ||
max-line-length = 88 | ||
select = C,E,F,W,B,B950 | ||
ignore = E501,E203 |
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,6 @@ | ||
[settings] | ||
multi_line_output=3 | ||
include_trailing_comma=True | ||
force_grid_wrap=0 | ||
combine_as_imports=True | ||
line_length=88 |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
[[source]] | ||
name = "pypi" | ||
url = "https://pypi.org/simple" | ||
verify_ssl = true | ||
|
||
[dev-packages] | ||
pytest = "*" | ||
black = "==18.9b0" | ||
pytest-cov = "*" | ||
isort = "*" | ||
coveralls = "*" | ||
|
||
[packages] | ||
factory-boy = "*" | ||
pytest-socket = "*" | ||
|
||
[requires] | ||
python_version = "3.7" |
Oops, something went wrong.