Skip to content

Commit 9987650

Browse files
authored
Merge branch 'main' into chore/release-2.1.0
2 parents 2809477 + a34c72d commit 9987650

28 files changed

Lines changed: 189 additions & 133 deletions

.pre-commit-config.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
repos:
22
- repo: https://github.com/psf/black
3-
rev: 20.8b1
3+
rev: 24.10.0
44
hooks:
55
- id: black
66
args: [ "--safe", "--diff", "--color"]
77
verbose: true
88
- repo: https://github.com/psf/black
9-
rev: 20.8b1
9+
rev: 24.10.0
1010
hooks:
1111
- id: black
1212
args: [ "--safe", "--quiet"]
@@ -17,10 +17,10 @@ repos:
1717
- id: isort
1818
args: ["--profile", "black", "--filter-files"]
1919
- repo: https://github.com/asottile/blacken-docs
20-
rev: v1.10.0
20+
rev: 1.19.1
2121
hooks:
2222
- id: blacken-docs
23-
additional_dependencies: [ black==20.8b1 ]
23+
additional_dependencies: [ black==24.10.0 ]
2424
- repo: https://github.com/pre-commit/pre-commit-hooks
2525
rev: v4.0.1
2626
hooks:
@@ -41,10 +41,10 @@ repos:
4141
- id: python-use-type-annotations
4242
- id: rst-backticks
4343
- repo: https://github.com/pycqa/flake8
44-
rev: 3.9.2
44+
rev: 7.3.0
4545
hooks:
4646
- id: flake8
4747
language_version: python3
4848
additional_dependencies:
49-
- flake8-typing-imports==1.9.0
50-
- flake8-docstrings==1.5.0
49+
- flake8-typing-imports==1.15.0
50+
- flake8-docstrings==1.7.0

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ the all tracking events for a given shipment.
6363
- [track_package_by_carrier_code_and_tracking_number](./docs/track_package_by_carrier_code_and_tracking_number_example.md) - Track a package by `carrier_code` and `tracking_number`. This method returns
6464
the all tracking events for a given shipment.
6565
- [void_label_by_label_id](./docs/void_label_by_label_id_example.md) - Void a shipping label you created using ShipEngine by its `label_id`. This method returns an object that indicates the status of the void label request.
66-
- [list_labels_by_tracking_number] (./docs/list_labels_by_tracking_number.md) - List the labels associated with the inputted tracking number.
66+
- [list_labels_by_tracking_number](./docs/list_labels_by_tracking_number.md) - List the labels associated with the given tracking number.
6767

6868
Class Objects
6969
-------------
@@ -83,7 +83,7 @@ You can use the following `curl` command to download **Poetry** from your termin
8383
on `osx / linux / bashonwindows`:
8484

8585
```bash
86-
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python -
86+
curl -sSL https://install.python-poetry.org | python3 -
8787
```
8888

8989
- Once you have **Poetry** installed you need to install the projects dependencies with this command from the project root:

docs/list_labels_by_tracking_number.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ def list_labels_by_tracking_number_demo():
3131
{"api_key": api_key, "page_size": 75, "retries": 3, "timeout": 10}
3232
)
3333
try:
34-
result = shipengine.list_labels_by_tracking_number(tracking_number="1ZXXXXXXXXXXXXXXXX")
34+
result = shipengine.list_labels_by_tracking_number(
35+
tracking_number="1ZXXXXXXXXXXXXXXXX"
36+
)
3537
print("::SUCCESS::")
3638
print(result)
3739
except ShipEngineError as err:

poetry.lock

Lines changed: 55 additions & 58 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ fuuid = "^0.1.0"
4444
pytest = "^7.0.0"
4545
pytest-cov = "^2.11.1"
4646
pytest-mock = "^3.6.1"
47-
black = "^22.0.0"
48-
flake8 = "^6.0.0"
47+
black = "^24.0.0"
48+
flake8 = "^7.0.0"
4949
Sphinx = "^3.5.2"
5050
tox = "^3.23.0"
5151
coverage = "^5.5"
@@ -58,7 +58,6 @@ responses = "^0.13.3"
5858
[tool.black]
5959
line-length = 100
6060
target-version = ["py310"]
61-
safe = true
6261

6362
[tool.isort]
6463
profile = "black"

shipengine/enums/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""ShipEngine SDK Enumerations"""
2+
23
from enum import Enum
34

45
from .country import Country

shipengine/enums/country.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""An enumeration of valid/supported countries."""
2+
23
from enum import Enum
34

45

shipengine/enums/error_code.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Enumeration of error sources returned by ShipEngine API."""
2+
23
from enum import Enum
34

45

shipengine/enums/error_source.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Enumeration of error sources returned by ShipEngine API."""
2+
23
from enum import Enum
34

45

shipengine/enums/error_type.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
"""Enumeration of error types returned by ShipEngine API."""
2+
23
from enum import Enum
34

45

56
class ErrorType(Enum):
6-
"""Indicates the type of an error. Think of this as a broad category rather than a specific error."""
7+
"""Indicates the type of an error.
8+
9+
Think of this as a broad category rather than a specific error.
10+
"""
711

812
ACCOUNT_STATUS = "account_status"
913
"""

0 commit comments

Comments
 (0)