Skip to content

Commit 03c1238

Browse files
committed
Add trailing-whitespace hook and run on all files
1 parent 962521e commit 03c1238

15 files changed

+20
-20
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@ jobs:
44
build:
55
runs-on: ubuntu-latest
66
name: Python ${{ matrix.version }}
7-
strategy:
7+
strategy:
88
matrix:
99
version: [2.7, 3.6, 3.8, 3.9]
1010

11-
steps:
11+
steps:
1212
- name: Checkout
1313
uses: actions/checkout@v2
1414
- name: Set up Python ${{ matrix.python-version }}
1515
uses: actions/setup-python@v2
1616
with:
1717
python-version: ${{ matrix.version }}
1818
- name: Install Dependencies
19-
run: |
19+
run: |
2020
python -m pip install --upgrade pip
2121
pip install pytest mock pytest-cov
2222
python setup.py install

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ repos:
55
rev: v3.4.0
66
hooks:
77
- id: end-of-file-fixer
8+
- id: trailing-whitespace

CHANGELOG

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
- Add ApplicationCredit resource ([#457](https://github.com/Shopify/shopify_python_api/pull/457))
55

66
== Version 8.2.0
7-
- [Feature] Add support for Dynamic API Versioning. When the library is initialized, it will now make a request to
7+
- [Feature] Add support for Dynamic API Versioning. When the library is initialized, it will now make a request to
88
Shopify to fetch a list of the available API versions. ([#441](https://github.com/Shopify/shopify_python_api/pull/441))
99

1010
== Version 8.1.0

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,4 +214,4 @@ Currently there is no support for:
214214
* [Partners Dashboard](https://partners.shopify.com)
215215
* [developers.shopify.com](https://developers.shopify.com)
216216
* [Shopify.dev](https://shopify.dev)
217-
* [Ask questions on the Shopify forums](http://ecommerce.shopify.com/c/shopify-apis-and-technology)
217+
* [Ask questions on the Shopify forums](http://ecommerce.shopify.com/c/shopify-apis-and-technology)

shopify/resources/fulfillment.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class FulfillmentOrders(ShopifyResource):
2626
class FulfillmentV2(ShopifyResource):
2727
_singular = 'fulfillment'
2828
_plural = 'fulfillments'
29-
29+
3030
def update_tracking(self, tracking_info, notify_customer):
3131
body = {
3232
"fulfillment": {

test/blog_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from test.test_helper import TestCase
33

44
class BlogTest(TestCase):
5-
5+
66
def test_blog_creation(self):
77
self.fake('blogs', method='POST', code=202, body=self.load_fixture('blog'), headers={'Content-type': 'application/json'})
88
blog = shopify.Blog.create({'title': "Test Blog"})

test/cart_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from test.test_helper import TestCase
33

44
class CartTest(TestCase):
5-
5+
66
def test_all_should_return_all_carts(self):
77
self.fake('carts')
88
carts = shopify.Cart.find()

test/checkout_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from test.test_helper import TestCase
33

44
class CheckoutTest(TestCase):
5-
5+
66
def test_all_should_return_all_checkouts(self):
77
self.fake('checkouts')
88
checkouts = shopify.Checkout.find()

test/customer_saved_search_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from test.test_helper import TestCase
33

44
class CustomerSavedSearchTest(TestCase):
5-
5+
66
def setUp(self):
77
super(CustomerSavedSearchTest, self).setUp()
88
self.load_customer_saved_search()

test/fixtures/carts.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"note": null,
66
"token": "3eed8183d4281db6ea82ee2b8f23e9cc",
77
"updated_at": "2012-02-13T14:39:37-05:00",
8-
"line_items":
8+
"line_items":
99
[
1010
{
1111
"id": 1,

0 commit comments

Comments
 (0)