More of: Disable import inspections for wxPython, because it's not installed traditionally and we can't include it in requirements.txt
This commit is contained in:
2
pyfa.py
2
pyfa.py
@@ -94,6 +94,7 @@ if not hasattr(sys, 'frozen'):
|
||||
|
||||
# check also for dateutil module installed.
|
||||
try:
|
||||
# noinspection PyPackageRequirements
|
||||
import dateutil.parser # noqa - Copied import statement from service/update.py
|
||||
except ImportError:
|
||||
print("Cannot find python-dateutil.\nYou can download python-dateutil from https://pypi.python.org/pypi/python-dateutil")
|
||||
@@ -120,6 +121,7 @@ if __name__ == "__main__":
|
||||
logging.basicConfig()
|
||||
|
||||
# Import everything
|
||||
# noinspection PyPackageRequirements
|
||||
import wx
|
||||
import os
|
||||
import os.path
|
||||
|
||||
@@ -27,6 +27,7 @@ from xml.etree import ElementTree
|
||||
from xml.dom import minidom
|
||||
import gzip
|
||||
|
||||
# noinspection PyPackageRequirements
|
||||
import wx
|
||||
|
||||
import config
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
# noinspection PyPackageRequirements
|
||||
import wx
|
||||
import thread
|
||||
import logging
|
||||
|
||||
@@ -22,6 +22,7 @@ import threading
|
||||
import logging
|
||||
import Queue
|
||||
|
||||
# noinspection PyPackageRequirements
|
||||
import wx
|
||||
from sqlalchemy.sql import or_
|
||||
|
||||
|
||||
@@ -33,6 +33,7 @@ import xml.parsers.expat
|
||||
from eos import db
|
||||
from service.fit import Fit as svcFit
|
||||
|
||||
# noinspection PyPackageRequirements
|
||||
import wx
|
||||
|
||||
from eos.saveddata.cargo import Cargo
|
||||
|
||||
@@ -4,6 +4,7 @@ import socket
|
||||
import thread
|
||||
import logging
|
||||
|
||||
# noinspection PyPackageRequirements
|
||||
import wx
|
||||
|
||||
from service.settings import CRESTSettings
|
||||
|
||||
@@ -21,7 +21,9 @@ import threading
|
||||
import json
|
||||
import calendar
|
||||
|
||||
# noinspection PyPackageRequirements
|
||||
import wx
|
||||
# noinspection PyPackageRequirements
|
||||
import dateutil.parser
|
||||
|
||||
import config
|
||||
|
||||
1
setup.py
1
setup.py
@@ -22,6 +22,7 @@ excludes = ['Tkinter', 'collections.abc', 'IPython', 'PyQt4', 'PIL', 'nose', 'to
|
||||
|
||||
if __name__ == "__main__":
|
||||
import sys
|
||||
# noinspection PyPackageRequirements
|
||||
from cx_Freeze import setup, Executable
|
||||
import config
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@ import os
|
||||
import sys
|
||||
import importlib
|
||||
|
||||
# noinspection PyPackageRequirements
|
||||
import pytest
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user