add simulation to white-list
This commit is contained in:
parent
d71c131e5b
commit
826137bd3b
|
@ -75,6 +75,8 @@ EXCLUDE_DIRECTORIES = [
|
||||||
EXCLUDE_FILES = [
|
EXCLUDE_FILES = [
|
||||||
# Django-generated files
|
# Django-generated files
|
||||||
os.path.join(OTTERTUNE_DIR, 'server/website/manage.py'),
|
os.path.join(OTTERTUNE_DIR, 'server/website/manage.py'),
|
||||||
|
# file causing import error
|
||||||
|
os.path.join(OTTERTUNE_DIR, 'server/analysis/simulation.py'),
|
||||||
]
|
]
|
||||||
|
|
||||||
CHECKSTYLE_JAR_PATH = os.path.join(OTTERTUNE_DIR,
|
CHECKSTYLE_JAR_PATH = os.path.join(OTTERTUNE_DIR,
|
||||||
|
|
|
@ -5,12 +5,10 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
import imp
|
|
||||||
import random
|
import random
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
try:
|
try:
|
||||||
imp.find_module('matplotlib.pyplot')
|
|
||||||
import matplotlib.pyplot as plt
|
import matplotlib.pyplot as plt
|
||||||
except (ModuleNotFoundError, ImportError):
|
except (ModuleNotFoundError, ImportError):
|
||||||
plt = None
|
plt = None
|
||||||
|
|
Loading…
Reference in New Issue