mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-19 21:03:14 -07:00
Fix flake8 E402 module level import not at top of file
This commit is contained in:
parent
98e8fd581a
commit
9527a2bd67
3 changed files with 18 additions and 14 deletions
|
@ -1,16 +1,15 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
# coding=utf-8
|
# coding=utf-8
|
||||||
|
|
||||||
import eol
|
|
||||||
eol.check()
|
|
||||||
|
|
||||||
import cleanup
|
|
||||||
cleanup.clean(cleanup.FOLDER_STRUCTURE)
|
|
||||||
|
|
||||||
import datetime
|
import datetime
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
import eol
|
||||||
|
import cleanup
|
||||||
|
eol.check()
|
||||||
|
cleanup.clean(cleanup.FOLDER_STRUCTURE)
|
||||||
|
|
||||||
import core
|
import core
|
||||||
from core import logger, main_db
|
from core import logger, main_db
|
||||||
from core.auto_process import comics, games, movies, music, tv, books
|
from core.auto_process import comics, games, movies, music, tv, books
|
||||||
|
@ -18,7 +17,11 @@ from core.auto_process.common import ProcessResult
|
||||||
from core.plugins.plex import plex_update
|
from core.plugins.plex import plex_update
|
||||||
from core.user_scripts import external_script
|
from core.user_scripts import external_script
|
||||||
from core.utils import char_replace, convert_to_ascii, replace_links
|
from core.utils import char_replace, convert_to_ascii, replace_links
|
||||||
from six import text_type
|
|
||||||
|
try:
|
||||||
|
text_type = unicode
|
||||||
|
except NameError:
|
||||||
|
text_type = str
|
||||||
|
|
||||||
|
|
||||||
def process_torrent(input_directory, input_name, input_category, input_hash, input_id, client_agent):
|
def process_torrent(input_directory, input_name, input_category, input_hash, input_id, client_agent):
|
||||||
|
|
|
@ -657,16 +657,16 @@
|
||||||
|
|
||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
|
|
||||||
import eol
|
|
||||||
eol.check()
|
|
||||||
|
|
||||||
import cleanup
|
|
||||||
cleanup.clean(cleanup.FOLDER_STRUCTURE)
|
|
||||||
|
|
||||||
import datetime
|
import datetime
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
import eol
|
||||||
|
import cleanup
|
||||||
|
|
||||||
|
eol.check()
|
||||||
|
cleanup.clean(cleanup.FOLDER_STRUCTURE)
|
||||||
|
|
||||||
import core
|
import core
|
||||||
from core import logger, main_db
|
from core import logger, main_db
|
||||||
from core.auto_process import comics, games, movies, music, tv, books
|
from core.auto_process import comics, games, movies, music, tv, books
|
||||||
|
|
3
tox.ini
3
tox.ini
|
@ -66,7 +66,8 @@ ignore =
|
||||||
per-file-ignores =
|
per-file-ignores =
|
||||||
; F401 imported but unused
|
; F401 imported but unused
|
||||||
; E402 module level import not at top of file
|
; E402 module level import not at top of file
|
||||||
nzbTo*.py: E265, E266
|
nzbTo*.py: E265, E266, E402
|
||||||
|
TorrentToMedia.py: E402
|
||||||
core/__init__.py: E402, F401
|
core/__init__.py: E402, F401
|
||||||
core/utils/__init__.py: F401
|
core/utils/__init__.py: F401
|
||||||
core/plugins/downloaders/configuration.py: F401
|
core/plugins/downloaders/configuration.py: F401
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue