Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
b362e8e
Acceptance criteria per DX-1442 - Invalid retries at instantiation
KaseyCantu May 25, 2021
4f1fdf6
argument name adjustment e -> error
KaseyCantu May 25, 2021
b7ca5b9
Adjustment to InvalidFieldValueError arguments to include source - de…
KaseyCantu May 25, 2021
844d495
Added coveralls badge
KaseyCantu May 25, 2021
8b43a13
minor change to except statement
KaseyCantu May 25, 2021
d9867f8
work in progress - Acceptance criteria per DX-1443 - Invalid timeout …
KaseyCantu May 26, 2021
09c3b0b
work in progress - implementing client for validate address and other…
KaseyCantu May 26, 2021
196bdd4
implementing client for validate address and other methods
KaseyCantu May 26, 2021
2ffc0ad
update lockfile
KaseyCantu May 26, 2021
ee44d2b
quick bug fix in sdk_assertions.py
KaseyCantu May 27, 2021
e0fad49
quick bug fix in sdk_assertions.py
KaseyCantu May 27, 2021
5adfdd9
Acceptance criteria per DX-1022 - validate address implementation
KaseyCantu May 27, 2021
b36f3cf
work in progress
KaseyCantu May 27, 2021
d99462c
work in progress
KaseyCantu May 28, 2021
1c2db5c
Acceptance criteria per DX-1024 - Valid residential address
KaseyCantu May 28, 2021
937bb50
Acceptance criteria per DX-1446 - Invalid retries in method call conf…
KaseyCantu May 28, 2021
db71191
Acceptance criteria per DX-1445 - Invalid api_key in method call conf…
KaseyCantu May 28, 2021
7caa67a
Added a regex to check for whitespace chars in api_key field
KaseyCantu May 28, 2021
99a4712
added coveralls
KaseyCantu May 28, 2021
c90afc4
added coveralls
KaseyCantu May 28, 2021
c46b35c
updating coveralls in CI/CD
KaseyCantu May 28, 2021
152e060
updating coveralls in CI/CD
KaseyCantu May 28, 2021
8fd5ef0
updating coveralls in CI/CD
KaseyCantu May 28, 2021
07bbbf0
updating coveralls in CI/CD
KaseyCantu May 28, 2021
7a92554
updating coveralls in CI/CD
KaseyCantu May 28, 2021
811c3e6
updating coveralls in CI/CD from tox.ini
KaseyCantu May 28, 2021
52fa53a
updating coveralls in CI/CD from tox.ini
KaseyCantu May 28, 2021
fc68611
debugging coveralls in CI/CD from tox.ini
KaseyCantu May 28, 2021
b8df57a
debugging coveralls in CI/CD from tox.ini
KaseyCantu May 28, 2021
708b0ff
debugging coveralls in CI/CD from tox.ini
KaseyCantu May 28, 2021
e665663
debugging coveralls in CI/CD from tox.ini
KaseyCantu May 28, 2021
59833fe
debugging coveralls in CI/CD from tox.ini
KaseyCantu May 28, 2021
89ab9fa
debugging coveralls in CI/CD from tox.ini
KaseyCantu May 28, 2021
b10dce6
debugging coveralls in CI/CD from tox.ini
KaseyCantu May 28, 2021
7b82871
debugging coveralls in CI/CD from tox.ini
KaseyCantu May 28, 2021
b2de7ff
debugging coveralls in CI/CD from tox.ini
KaseyCantu May 28, 2021
842b628
debugging coveralls in CI/CD from tox.ini
KaseyCantu May 28, 2021
9f387f6
debugging coveralls in CI/CD from tox.ini
KaseyCantu May 28, 2021
fddad7f
debugging coveralls in CI/CD from tox.ini
KaseyCantu May 28, 2021
def7783
debugging coveralls in CI/CD from tox.ini
KaseyCantu May 28, 2021
9eba013
debugging coveralls in CI/CD from tox.ini
KaseyCantu May 28, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ per-file-ignores =
__init__.py: F401
max-line-length = 120
ignore =
# line break before binary operator
W503
# whitespace before ':'
E203
# Missing Docstrings
Expand Down
59 changes: 53 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,20 @@ on:
- main

jobs:
build:

lint-test-coverage:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.8, 3.9]

steps:
- uses: actions/checkout@v2

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Cache pip
uses: actions/cache@v2
with:
Expand All @@ -48,7 +49,53 @@ jobs:
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=100 --statistics
- name: Run linting environment and pre-commit hooks
run: |
tox -e linting
- name: Test with pytest and coverage via Tox
run: |
tox
tox -e lint


tox-coveralls:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.7
uses: actions/setup-python@v2
with:
python-version: 3.7

- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8

- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9

- name: Install python dependencies
run: |
python -m pip install --upgrade pip
python -m pip install tox pytest pytest-cov coverage responses
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi

- name: Tox testenv
run: |
tox

- name: Pytest
run: |
pytest

- name: Coveralls
uses: AndreMiras/coveralls-python-action@develop
with:
parallel: true
flag-name: Python Test Suite

coveralls_finish:
needs: tox-coveralls
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: AndreMiras/coveralls-python-action@develop
with:
parallel-finished: true
16 changes: 11 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,26 @@ repos:
rev: 20.8b1
hooks:
- id: black
args: [ "--safe", "--diff", "--color" ]
args: [ "--safe", "--diff", "--color"]
verbose: true
- repo: https://github.com/psf/black
rev: 20.8b1
hooks:
- id: black
args: [ "--safe", "--quiet"]
language_version: python3
- repo: https://github.com/pycqa/isort
rev: 5.6.4
rev: 5.8.0
hooks:
- id: isort
args: ["--profile", "black", "--filter-files"]
- repo: https://github.com/asottile/blacken-docs
rev: v1.9.2
rev: v1.10.0
hooks:
- id: blacken-docs
additional_dependencies: [ black==20.8b1 ]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0
rev: v4.0.1
hooks:
- id: check-docstring-first
- id: trailing-whitespace
Expand All @@ -35,7 +41,7 @@ repos:
- id: python-use-type-annotations
- id: rst-backticks
- repo: https://gitlab.com/pycqa/flake8
rev: 3.8.4
rev: 3.9.2
hooks:
- id: flake8
language_version: python3
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
ShipEngine SDK - Python
=======================
![GitHub Workflow Status](https://img.shields.io/github/workflow/status/ShipEngine/shipengine-python/Python%20package?label=shipengine-python&logo=github&logoColor=white)
[![Coverage Status](https://coveralls.io/repos/github/ShipEngine/shipengine-python/badge.svg?branch=main)](https://coveralls.io/github/ShipEngine/shipengine-python?branch=main)
![OS Compatibility](https://shipengine.github.io/img/badges/os-badges.svg)
> ATTN: This project is under development and not ready for consumer use.

Expand Down
Loading