Skip to content

Commit cd3d914

Browse files
committed
fix: formatting
1 parent 11eabea commit cd3d914

File tree

2 files changed

+7
-18
lines changed

2 files changed

+7
-18
lines changed

easypost/constant.py

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -13,33 +13,21 @@
1313
# Error messages
1414
COMMUNICATION_ERROR = "Unexpected error communicating with EasyPost. If this problem persists please let us know at {}. Original error: {}"
1515
INVALID_DELIVER_ACCURACY_ERROR = "Invalid delivery_accuracy value, must be one of: {}"
16-
INVALID_PAYMENT_METHOD_ERROR = (
17-
"The chosen payment method is not valid. Please try again."
18-
)
19-
INVALID_REQUEST_LIB_ERROR = (
20-
"Bug discovered: invalid request_lib: {}. Please report to {}."
21-
)
22-
INVALID_REQUEST_METHOD_ERROR = (
23-
"Bug discovered: invalid request method: {}. Please report to {}."
24-
)
16+
INVALID_PAYMENT_METHOD_ERROR = "The chosen payment method is not valid. Please try again."
17+
INVALID_REQUEST_LIB_ERROR = "Bug discovered: invalid request_lib: {}. Please report to {}."
18+
INVALID_REQUEST_METHOD_ERROR = "Bug discovered: invalid request method: {}. Please report to {}."
2519
INVALID_REQUEST_PARAMETERS_ERROR = "Only GET and DELETE requests support parameters."
2620
INVALID_REQUESTS_VERSION_ERROR = 'EasyPost requires an up to date requests library. Update requests via "pip install -U requests" or contact us at {}.'
2721
INVALID_RESPONSE_BODY_ERROR = "Invalid response from API: ({}) {}"
2822
INVALID_SIGNATURE_ERROR = "Webhook received does not contain an HMAC signature."
29-
INVALID_WEBHOOK_VALIDATION_ERROR = (
30-
"Webhook received did not originate from EasyPost or had a webhook secret mismatch."
31-
)
23+
INVALID_WEBHOOK_VALIDATION_ERROR = "Webhook received did not originate from EasyPost or had a webhook secret mismatch."
3224
MISSING_PARAMETER_ERROR = "Missing required parameter: {}"
3325
NO_ATTRIBUTE_ERROR = "{} object has no attribute {}"
34-
NO_BILLING_ERROR = (
35-
"Billing has not been setup for this user. Please add a payment method."
36-
)
26+
NO_BILLING_ERROR = "Billing has not been setup for this user. Please add a payment method."
3727
NO_MORE_PAGES_ERROR = "There are no more pages to retrieve."
3828
NO_RATES_ERROR = "No rates found."
3929
NO_USER_FOUND = "No user found with the given id."
40-
SEND_STRIPE_DETAILS_ERROR = (
41-
"Could not send card details to Stripe, please try again later."
42-
)
30+
SEND_STRIPE_DETAILS_ERROR = "Could not send card details to Stripe, please try again later."
4331
TIMEOUT_ERROR = "Request timed out."
4432

4533
# Internal constants (user's should not use these)

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
setup,
44
)
55

6+
67
REQUIREMENTS = [
78
"requests >= 2.4.3",
89
]

0 commit comments

Comments
 (0)