Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
vegu committed Jun 18, 2024
1 parent 1f4ecbd commit f30fb54
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 7 deletions.
1 change: 1 addition & 0 deletions src/peeringdb/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
PeeringDB API
"""

import logging
import sys
from importlib import import_module
Expand Down
1 change: 1 addition & 0 deletions src/peeringdb/_sync.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Sync implementation module
"""

from collections import defaultdict

from peeringdb.util import group_fields
Expand Down
2 changes: 1 addition & 1 deletion src/peeringdb/_update.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Module defining main interface classes for sync
"""

import logging
from datetime import datetime
from typing import List, Union
Expand All @@ -13,7 +14,6 @@


class Updater:

"""
Handles initial and incremental update from a PeeringDB remote API
to the local backend.
Expand Down
3 changes: 0 additions & 3 deletions src/peeringdb/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ def __init__(self, name):


class EmptyContext:

"""
We use this to provide a dummy context wherever it's optional
"""
Expand All @@ -54,7 +53,6 @@ def __exit__(self, *args):


class Base:

"""
Backend base class.
Expand Down Expand Up @@ -105,7 +103,6 @@ def get_resource(self, cls):


class Interface(Base):

"""
backend adapter interface
Expand Down
9 changes: 6 additions & 3 deletions src/peeringdb/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
This defines config schemas and related I/O.
"""

import os

import munge
Expand Down Expand Up @@ -47,9 +48,11 @@ class SyncSchema(_schema.Schema):
only = _schema.List(
"only",
item=_schema.Str(),
default=os.environ.get("PDB_SYNC_ONLY", "").split(",")
if os.environ.get("PDB_SYNC_ONLY")
else [],
default=(
os.environ.get("PDB_SYNC_ONLY", "").split(",")
if os.environ.get("PDB_SYNC_ONLY")
else []
),
)
timeout = _schema.Int(
"timeout", default=int(os.environ.get("PDB_SYNC_TIMEOUT", "0"))
Expand Down
1 change: 1 addition & 0 deletions src/peeringdb/resource.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
PeeringDB resource definitions
"""

from collections import OrderedDict

# Generate classes
Expand Down

0 comments on commit f30fb54

Please sign in to comment.