Fixup for pylint
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
75ca09d65d
commit
0e1dda7e53
|
@ -2,7 +2,15 @@
|
|||
|
||||
set -e
|
||||
|
||||
pylint3 \
|
||||
make -C source/frontend
|
||||
|
||||
if which pylint3 >/dev/null; then
|
||||
pylint='pylint3'
|
||||
else
|
||||
pylint='pylint'
|
||||
fi
|
||||
|
||||
${pylint} \
|
||||
--extension-pkg-whitelist=PyQt5 \
|
||||
--disable=\
|
||||
bad-whitespace,\
|
||||
|
@ -26,7 +34,7 @@ unused-argument,\
|
|||
wrong-import-position \
|
||||
source/frontend/carla_{app,backend,backend_qt,settings,shared,utils,widgets}.py
|
||||
|
||||
pylint3 \
|
||||
${pylint} \
|
||||
--extension-pkg-whitelist=PyQt5 \
|
||||
-E \
|
||||
source/frontend/carla_{database,host,skin}.py
|
||||
|
|
|
@ -52,10 +52,8 @@ from carla_shared import (
|
|||
|
||||
# ------------------------------------------------------------------------------------------------------------
|
||||
|
||||
class CarlaApplication(object):
|
||||
class CarlaApplication():
|
||||
def __init__(self, appName = "Carla2", libPrefix = None):
|
||||
object.__init__(self)
|
||||
|
||||
pathBinaries, _ = getPaths(libPrefix)
|
||||
|
||||
# Needed for MacOS and Windows
|
||||
|
|
|
@ -1504,10 +1504,8 @@ else:
|
|||
# ------------------------------------------------------------------------------------------------------------
|
||||
# Carla Host object (Meta)
|
||||
|
||||
class CarlaHostMeta(object):
|
||||
class CarlaHostMeta():
|
||||
def __init__(self):
|
||||
object.__init__(self)
|
||||
|
||||
# info about this host object
|
||||
self.isControl = False
|
||||
self.isPlugin = False
|
||||
|
@ -3223,7 +3221,7 @@ class CarlaHostDLL(CarlaHostMeta):
|
|||
# ------------------------------------------------------------------------------------------------------------
|
||||
# Helper object for CarlaHostPlugin
|
||||
|
||||
class PluginStoreInfo(object):
|
||||
class PluginStoreInfo():
|
||||
def __init__(self):
|
||||
self.clear()
|
||||
|
||||
|
|
|
@ -545,7 +545,7 @@ del DEFAULT_SFZ_PATH
|
|||
# ------------------------------------------------------------------------------------------------------------
|
||||
# Global Carla object
|
||||
|
||||
class CarlaObject(object):
|
||||
class CarlaObject():
|
||||
def __init__(self):
|
||||
self.gui = None # Host Window
|
||||
self.nogui = False # Skip UI
|
||||
|
@ -590,7 +590,7 @@ def countDecimalPoints(step, stepSmall):
|
|||
|
||||
count = 0
|
||||
value = fmod(abs(stepSmall), 1)
|
||||
while value > 0.001 and value < 0.99 and count < 6:
|
||||
while 0.001 < value < 0.99 and count < 6:
|
||||
value = fmod(value*10, 1)
|
||||
count += 1
|
||||
|
||||
|
|
|
@ -244,10 +244,8 @@ PyCarlaCachedPluginInfo = {
|
|||
# ------------------------------------------------------------------------------------------------------------
|
||||
# Carla Utils object using a DLL
|
||||
|
||||
class CarlaUtils(object):
|
||||
class CarlaUtils():
|
||||
def __init__(self, filename):
|
||||
object.__init__(self)
|
||||
|
||||
self.lib = cdll.LoadLibrary(filename)
|
||||
#self.lib = CDLL(filename, RTLD_GLOBAL)
|
||||
|
||||
|
|
Loading…
Reference in New Issue