Browse Source

Fixup for pylint

Signed-off-by: falkTX <falktx@falktx.com>
tags/v2.2.0-RC1
falkTX 4 years ago
parent
commit
0e1dda7e53
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
5 changed files with 16 additions and 14 deletions
  1. +10
    -2
      .travis/script-pylint.sh
  2. +1
    -3
      source/frontend/carla_app.py
  3. +2
    -4
      source/frontend/carla_backend.py
  4. +2
    -2
      source/frontend/carla_shared.py
  5. +1
    -3
      source/frontend/carla_utils.py

+ 10
- 2
.travis/script-pylint.sh View File

@@ -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

+ 1
- 3
source/frontend/carla_app.py View File

@@ -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


+ 2
- 4
source/frontend/carla_backend.py View File

@@ -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()



+ 2
- 2
source/frontend/carla_shared.py View File

@@ -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



+ 1
- 3
source/frontend/carla_utils.py View File

@@ -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…
Cancel
Save