Skip to content

Commit

Permalink
Fix flake8 issues
Browse files Browse the repository at this point in the history
  • Loading branch information
shane-ns1 committed Dec 19, 2023
1 parent 4350c3f commit aa21e75
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
run: |
# Ignore the line length rule because black will handle that
# and flake8 doesn't allow long comment lines.
flake8 . --exclude=.tox --count --show-source --statistics --extend-ignore=E501
flake8 . --exclude=.tox --exclude=.eggs --count --show-source --statistics --extend-ignore=E501
- name: Lint with black
run: |
black . --check -l 79 --diff
Expand Down
2 changes: 1 addition & 1 deletion ns1/rest/records.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# License under The MIT License (MIT). See LICENSE in project root.
try:
from collections.abc import Iterable
except:
except ImportError:
from collections import Iterable
import sys

Expand Down
1 change: 1 addition & 0 deletions ns1/rest/zones.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ def delete_version(
errback=errback,
)


# successive pages just extend the list of zones
def zone_list_pagination(curr_json, next_json):
curr_json.extend(next_json)
Expand Down
1 change: 1 addition & 0 deletions tests/unit/test_zone.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ def test_rest_zone_version_delete(zones_config, zone, id, url):
errback=None
)


def test_rest_zone_buildbody(zones_config):
z = ns1.rest.zones.Zones(zones_config)
zone = "test.zone"
Expand Down

0 comments on commit aa21e75

Please sign in to comment.