Skip to content

Commit ab102c6

Browse files
authored
Merge pull request #464 from Shopify/paulinakhew-add-trailing-whitespace-hook
Add trailing-whitespace hook and run on all files
2 parents 962521e + 9af6925 commit ab102c6

16 files changed

+26
-25
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

.github/workflows/pre-commit.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ jobs:
99
pre-commit:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v2
13-
- uses: actions/setup-python@v2
14-
- uses: pre-commit/[email protected]
15-
with:
16-
extra_args: end-of-file-fixer --all-files
12+
- name: Checkout
13+
uses: actions/checkout@v2
14+
- name: Setup
15+
uses: actions/setup-python@v2
16+
- name: Pre-commit
17+
uses: pre-commit/[email protected]

.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()

0 commit comments

Comments
 (0)