Skip to content

Commit b301f1c

Browse files
authored
Merge pull request #117 from shane-ns1/fix-flake8
Fix flake8 issues
2 parents da896b8 + aa21e75 commit b301f1c

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed

.github/workflows/verify.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
run: |
2323
# Ignore the line length rule because black will handle that
2424
# and flake8 doesn't allow long comment lines.
25-
flake8 . --exclude=.tox --count --show-source --statistics --extend-ignore=E501
25+
flake8 . --exclude=.tox --exclude=.eggs --count --show-source --statistics --extend-ignore=E501
2626
- name: Lint with black
2727
run: |
2828
black . --check -l 79 --diff

ns1/rest/records.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# License under The MIT License (MIT). See LICENSE in project root.
55
try:
66
from collections.abc import Iterable
7-
except:
7+
except ImportError:
88
from collections import Iterable
99
import sys
1010

ns1/rest/zones.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ def delete_version(
176176
errback=errback,
177177
)
178178

179+
179180
# successive pages just extend the list of zones
180181
def zone_list_pagination(curr_json, next_json):
181182
curr_json.extend(next_json)

tests/unit/test_zone.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ def test_rest_zone_version_delete(zones_config, zone, id, url):
108108
errback=None
109109
)
110110

111+
111112
def test_rest_zone_buildbody(zones_config):
112113
z = ns1.rest.zones.Zones(zones_config)
113114
zone = "test.zone"

0 commit comments

Comments
 (0)