Skip to content

Commit

Permalink
Fix import-outside-toplevel
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardobranco777 committed Jul 3, 2023
1 parent d5ddf24 commit c490945
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ocw/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
from apscheduler.schedulers.background import BackgroundScheduler
from apscheduler.executors.pool import ThreadPoolExecutor
from pytz import utc
import ocw.lib.db


logger = logging.getLogger(__name__)
__SCHEDULER = None
Expand Down Expand Up @@ -36,8 +38,6 @@ def ready(self):
getScheduler().start()

try:
import ocw.lib.db

ocw.lib.db.init_cron()
except Exception:
logger.exception("Failure on initialize cronjobs")
2 changes: 1 addition & 1 deletion ocw/lib/emailnotify.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from email.mime.text import MIMEText
from texttable import Texttable
from django.urls import reverse
from ocw import views
from webui.PCWConfig import PCWConfig
from webui.settings import build_absolute_uri
from ..models import Instance
Expand All @@ -13,7 +14,6 @@

def draw_instance_table(objects):

from ocw import views
table = Texttable(max_width=0)
table.set_deco(Texttable.HEADER)
table.header(['Provider', 'id', 'Created-By', 'Namespace', 'Age', 'Delete', 'openQA'])
Expand Down
1 change: 0 additions & 1 deletion pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ disable=
C0115, # missing-class-docstring
C0116, # missing-function-docstring
C0206, # Consider iterating with .items()
C0415, # Import outside toplevel
E1101, # no-member
R1702, # Too many nested blocks
W0237, # arguments-renamed
Expand Down

0 comments on commit c490945

Please sign in to comment.