Showing 1,558 of 1,565 total issues
Cyclic import (apel.db.records -> apel.db.records.sync) Open
"""A setup script for APEL.
- Read upRead up
- Exclude checks
Used when a cyclic import between two or more modules is detected.
Cyclic import (apel.db.records -> apel.db.records.normalised_summary) Open
"""A setup script for APEL.
- Read upRead up
- Exclude checks
Used when a cyclic import between two or more modules is detected.
Unable to import 'future.builtins' Open
from future.builtins import object
- Read upRead up
- Exclude checks
Used when pylint has been unable to import a module.
Catching too general exception Exception Open
except Exception: # An exception means we can't parse the file!
- Read upRead up
- Exclude checks
Used when an except catches a too general exception, possibly burying unrelated errors.
Method could be a function Open
def _load_multipliers(self):
- Read upRead up
- Exclude checks
Used when a method doesn't use its bound instance, and so could be written as a function.
Unable to import 'future.builtins' Open
from future.builtins import zip
- Read upRead up
- Exclude checks
Used when pylint has been unable to import a module.
Constant name log
doesn't conform to UPPER_CASE naming style Open
log = logging.getLogger(__name__)
- Read upRead up
- Exclude checks
Used when the name doesn't conform to naming rules associated to its type (constant, variable, class...).
Catching too general exception Exception Open
except Exception:
- Read upRead up
- Exclude checks
Used when an except catches a too general exception, possibly burying unrelated errors.
Variable name tb
doesn't conform to snake_case naming style Open
for tb in tbstack[1:]:
- Read upRead up
- Exclude checks
Used when the name doesn't conform to naming rules associated to its type (constant, variable, class...).
Variable name cp
doesn't conform to snake_case naming style Open
cp = re.compile(pattern)
- Read upRead up
- Exclude checks
Used when the name doesn't conform to naming rules associated to its type (constant, variable, class...).
standard import import datetime
should be placed before import iso8601
Open
import datetime
- Read upRead up
- Exclude checks
Used when PEP8 import order is not respected (standard imports first, then third-party libraries, then local imports)
Cyclic import (apel.db.records -> apel.db.records.group_attribute) Open
"""A setup script for APEL.
- Read upRead up
- Exclude checks
Used when a cyclic import between two or more modules is detected.
Wrong continued indentation (add 1 space). Open
'StartTime' : lambda x: int(round(float(x[9])/divisor)),
- Read upRead up
- Exclude checks
TODO 'StartTime' : lambda x: int(round(float(x[9])/divisor)), ^|
Wrong continued indentation (add 1 space). Open
'MemoryVirtual' : lambda x: int(float(x[42])),
- Read upRead up
- Exclude checks
TODO 'MemoryVirtual' : lambda x: int(float(x[42])), ^|
Line too long (103/100) Open
"/afs/cern.ch/user/r/raortega/log/berr-step3c-362.txt" "1089290023.699195" 0 1 "tbed0079" 64 3.3 ""
- Read upRead up
- Exclude checks
Used when a line is longer than a given number of characters.
Anomalous backslash in string: 'd'. String constant might be missing an r prefix. Open
'''
- Read upRead up
- Exclude checks
Used when a backslash is in a literal string but not as an escape.
standard import import datetime
should be placed before from apel.common import parse_time
Open
import datetime
- Read upRead up
- Exclude checks
Used when PEP8 import order is not respected (standard imports first, then third-party libraries, then local imports)
Import from .pbs import PBSParser
should be placed at the top of the module Open
from .pbs import PBSParser
- Read upRead up
- Exclude checks
Used when code and imports are mixed
Line too long (152/100) Open
end=1317534104 Exit_status=0 resources_used.cput=18:15:24 resources_used.mem=2031040kb resources_used.vmem=3335528kb resources_used.walltime=19:23:4
- Read upRead up
- Exclude checks
Used when a line is longer than a given number of characters.
Anomalous backslash in string: '.'. String constant might be missing an r prefix. Open
pattern += "([0-9]+[\.,]?[0-9]*S)?" # seconds
- Read upRead up
- Exclude checks
Used when a backslash is in a literal string but not as an escape.