-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Object model updates: * Task/Batch/Project models updated * A new method as_dict() introduced to access object as a dict * New ways to retrieve the list of tasks/batches: get_tasks and get_batches are the new generator methods for bulk retrieval API: * Isolated API access into a different class * Enabled HTTP retry for certain error codes * Improved error handling by differentiating exception types Infra improvements: * Enabled type hinting across the package * New code standards applied via Pylint, flake8 and black * Integrated pre-commit for a better/consistent developer experience * publish.sh introduced for an automated publish to PyPI * New pytest test cases are added Documentation * New Migration guide for v2 * New Developer Guide (how to setup repo env and configure pre-commit) * Updated deployment and publishing guide * Updated README for v2 * Made README to be available in PyPI
- Loading branch information
1 parent
139e521
commit 22827ba
Showing
21 changed files
with
1,753 additions
and
584 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 |
---|---|---|
@@ -1,8 +1,28 @@ | ||
*.pyc | ||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
*.py[cod] | ||
*$py.class | ||
|
||
# Distribution / packaging | ||
/build/ | ||
/dist/ | ||
/*.egg-info | ||
.tox | ||
.cache | ||
/.vscode/ | ||
*.egg | ||
*.eggs | ||
*.egg-info/ | ||
MANIFEST | ||
|
||
# For Visual Studio Code | ||
.vscode/ | ||
|
||
# Mac | ||
.DS_Store | ||
/build/ | ||
|
||
# Unit test / coverage reports | ||
.[nt]ox/ | ||
htmlcov/ | ||
.coverage | ||
.coverage.* | ||
.*cache | ||
nosetests.xml | ||
coverage.xml | ||
*.cover |
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,41 @@ | ||
default_language_version: | ||
python: python3.6 | ||
default_stages: [commit] | ||
|
||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v3.2.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: check-added-large-files | ||
- id: check-yaml | ||
- id: check-case-conflict | ||
- repo: https://github.com/pycqa/isort | ||
rev: 5.8.0 | ||
hooks: | ||
- id: isort | ||
name: isort | ||
args: ["--profile", "black"] | ||
- repo: https://github.com/psf/black | ||
rev: 20.8b1 | ||
hooks: | ||
- id: black | ||
- repo: https://gitlab.com/pycqa/flake8 | ||
rev: 3.8.4 | ||
hooks: | ||
- id: flake8 | ||
- repo: local | ||
hooks: | ||
- id: pylint | ||
name: pylint | ||
entry: pylint | ||
language: python | ||
types: [python] | ||
files: scaleapi/ | ||
additional_dependencies: | ||
- 'pylint>=2.7.4' | ||
- 'requests>=2.25.0' | ||
- 'urllib3>=1.26.0' | ||
- 'pytest>=6.2.2' | ||
language_version: python3.6 |
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,8 @@ | ||
[MASTER] | ||
disable= | ||
missing-module-docstring, | ||
too-few-public-methods, | ||
too-many-locals, | ||
too-many-arguments, | ||
too-many-instance-attributes, | ||
invalid-name, |
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,6 @@ | ||
black>=19.10b0 | ||
flake8>=3.8.4 | ||
pre-commit==2.11.1 | ||
isort>=5.7.0 | ||
pytest>=6.2.2 | ||
pylint>=2.7.2 |
Oops, something went wrong.