def prepare(self): """Make some preparations in feature branch for running doxygen. This includes a copy of doc/doxygen.conf to QAWORKDIR. """ TrapdoorProgram.prepare(self) shutil.copy('doc/doxygen.conf', self.doxyconf_file)
def prepare(self): """Make some preparations in feature branch for running pycodestyle. This includes a copy of tools/qa/pycodestyle to QAWORKDIR. """ TrapdoorProgram.prepare(self) shutil.copy('tools/qa/%s' % os.path.basename(self.config_file), self.config_file)
def prepare(self): """Make some preparations in feature branch for running pylint. This includes a copy of tools/qa/pylintrc to QAWORKDIR. """ TrapdoorProgram.prepare(self) shutil.copy('tools/qa/pylintrc', self.rcfile)
def prepare(self): """Make some preparations in feature branch for running pep8. This includes a copy of tools/qa/pep8 to QAWORKDIR. """ TrapdoorProgram.prepare(self) shutil.copy('tools/qa/pep8', self.config_file)
def prepare(self): """Make some preparations in feature branch for running cpplint.py. This includes a copy of cpplint.py to QAWORKDIR. """ TrapdoorProgram.prepare(self) shutil.copy('tools/qa/cpplint.py', self.cpplint_file) os.chmod(self.cpplint_file, stat.S_IRUSR | stat.S_IWUSR | stat.S_IXUSR)
def prepare(self): """Make some preparations in feature branch for running pylint. This includes a copy of tools/qa/pylintrc to QAWORKDIR. """ TrapdoorProgram.prepare(self) qatooldir = os.path.dirname(os.path.abspath(__file__)) shutil.copy(os.path.join(qatooldir, 'pylintrc'), self.rcfile)
def prepare(self): """Make some preparations in feature branch for running cpplint.py. This includes a copy of cpplint.py to QAWORKDIR. """ TrapdoorProgram.prepare(self) qatooldir = os.path.dirname(os.path.abspath(__file__)) shutil.copy(os.path.join(qatooldir, 'cpplint.py'), self.cpplint_file) os.chmod(self.cpplint_file, stat.S_IRUSR | stat.S_IWUSR | stat.S_IXUSR)
def prepare(self): """Make some preparations in feature branch for running pycodestyle. This includes a copy of tools/qa/pycodestyle to QAWORKDIR. """ TrapdoorProgram.prepare(self) qatooldir = os.path.dirname(os.path.abspath(__file__)) shutil.copy( os.path.join(qatooldir, os.path.basename(self.config_file)), self.config_file)
def prepare(self): """Make some preparations in feature branch for running doxygen. This includes a copy of doc/doxygen.conf to QAWORKDIR. """ TrapdoorProgram.prepare(self) qatooldir = os.path.dirname(os.path.abspath(__file__)) project_root = os.path.dirname(os.path.dirname(qatooldir)) doxygencfg = os.path.join(project_root, "doc", "doxygen.conf"), shutil.copy(doxygencfg, self.doxyconf_file)
def add_argparse_arguments(self, parser): """Add command-line arguments to the argument parser. Parameters ---------- parser : argparse.ArgumentParser The parser to which arguments must be added. """ TrapdoorProgram.add_argparse_arguments(self, parser) parser.add_argument( '--nproc', type=int, default=1, help='Number of parallel processes when running nose. ' '[default=%(default)s]')
def add_argparse_arguments(self, parser): """Add command-line arguments to the argument parser. Parameters ---------- parser : argparse.ArgumentParser The parser to which arguments must be added. """ TrapdoorProgram.add_argparse_arguments(self, parser) parser.add_argument( "--nproc", type=int, default=1, help="Number of parallel processes when running nose. " "[default=%(default)s]", )
def __init__(self): """Initialize a PEP257TrapdoorProgram instance.""" TrapdoorProgram.__init__(self, 'pep257')
def __init__(self): """Initialize the PyCodeStyleTrapdoorProgram.""" TrapdoorProgram.__init__(self, 'pycodestyle') self.config_file = os.path.join(self.qaworkdir, 'pycodestyle.ini')
def __init__(self): """Initialize the ImportTrapdoorProgram.""" TrapdoorProgram.__init__(self, 'import')
def __init__(self): """Initialize the CoverageTrapdoorProgram.""" TrapdoorProgram.__init__(self, 'coverage')
def __init__(self): """Initialize the PyCodeStyleTrapdoorProgram.""" TrapdoorProgram.__init__(self, 'pycodestyle')
def __init__(self): """Initialize the CPPLintTrapdoorProgram.""" TrapdoorProgram.__init__(self, 'cpplint') self.cpplint_file = os.path.join(self.qaworkdir, 'cpplint.py')
def __init__(self): """Initialize the CPPCheckTrandoorProgram.""" TrapdoorProgram.__init__(self, 'cppcheck')
def __init__(self): """Initialize the DoxygenTrapdoorProgram.""" TrapdoorProgram.__init__(self, 'doxygen') self.doxyconf_file = os.path.abspath( os.path.join(self.qaworkdir, 'doxygen.conf'))
def prepare(self): """Make some preparations in feature branch for running pycodestyle. This includes a copy of tools/qa/pycodestyle to QAWORKDIR. """ TrapdoorProgram.prepare(self)
def __init__(self): """Initialize a PylintTrapdoorProgram instance.""" TrapdoorProgram.__init__(self, 'pylint') self.rcfile = os.path.join(self.qaworkdir, 'pylintrc')
def __init__(self): """Initialize the NamespaceTrapdoorProgram.""" TrapdoorProgram.__init__(self, 'namespace')
def __init__(self): """Initialize the NamespaceTrapdoorProgram.""" TrapdoorProgram.__init__(self, "namespace")
def __init__(self): """Initialize a PyDocStyleTrapdoorProgram instance.""" TrapdoorProgram.__init__(self, 'pydocstyle')
def __init__(self): """Initialize the DoxygenTrapdoorProgram.""" TrapdoorProgram.__init__(self, 'doxygen') self.doxyconf_file = os.path.abspath(os.path.join(self.qaworkdir, 'doxygen.conf'))
def __init__(self): """Initialize the PEP8TrapdoorProgram.""" TrapdoorProgram.__init__(self, 'pep8') self.config_file = os.path.join(self.qaworkdir, 'pep8')
def __init__(self): """Initialize a PyDocStyleTrapdoorProgram instance.""" TrapdoorProgram.__init__(self, "pydocstyle")
def __init__(self): """Initialize a PylintTrapdoorProgram instance.""" TrapdoorProgram.__init__(self, 'pylint')