Skip to content

Commit 15a94da

Browse files
committed
Fix lint
1 parent dd602bb commit 15a94da

2 files changed

Lines changed: 20 additions & 6 deletions

File tree

ns1/__init__.py

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2014, 2025 NSONE, Inc.
2+
# Copyright (c) 2014, 2026 NSONE, Inc.
33
#
44
# License under The MIT License (MIT). See LICENSE in project root.
55
#
@@ -36,7 +36,9 @@ def _loadConfig(self, apiKey, configFile):
3636
if apiKey:
3737
self.config.createFromAPIKey(apiKey)
3838
else:
39-
configFile = Config.DEFAULT_CONFIG_FILE if not configFile else configFile
39+
configFile = (
40+
Config.DEFAULT_CONFIG_FILE if not configFile else configFile
41+
)
4042
self.config.loadFromFile(configFile)
4143

4244
# REST INTERFACE
@@ -298,7 +300,13 @@ def searchZone(
298300
return rest_zone.search(query, type, expand, max, callback, errback)
299301

300302
def createZone(
301-
self, zone, zoneFile=None, callback=None, errback=None, name=None, **kwargs
303+
self,
304+
zone,
305+
zoneFile=None,
306+
callback=None,
307+
errback=None,
308+
name=None,
309+
**kwargs
302310
):
303311
"""
304312
Create a new zone, and return an associated high level Zone object.
@@ -323,7 +331,11 @@ def createZone(
323331
zone = ns1.zones.Zone(self.config, zone)
324332

325333
return zone.create(
326-
zoneFile=zoneFile, name=name, callback=callback, errback=errback, **kwargs
334+
zoneFile=zoneFile,
335+
name=name,
336+
callback=callback,
337+
errback=errback,
338+
**kwargs
327339
)
328340

329341
def loadRecord(
@@ -355,7 +367,9 @@ def loadRecord(
355367
zone = ".".join(parts[1:])
356368
z = ns1.zones.Zone(self.config, zone)
357369

358-
return z.loadRecord(domain, type, callback=callback, errback=errback, **kwargs)
370+
return z.loadRecord(
371+
domain, type, callback=callback, errback=errback, **kwargs
372+
)
359373

360374
def loadMonitors(self, callback=None, errback=None, **kwargs):
361375
"""

ns1/rest/permissions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2014 NSONE, Inc.
2+
# Copyright (c) 2014, 2026 NSONE, Inc.
33
#
44
# License under The MIT License (MIT). See LICENSE in project root.
55
#

0 commit comments

Comments
 (0)