Пример #1
0
    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)
Пример #2
0
    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)
Пример #4
0
    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)
Пример #5
0
    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)
Пример #6
0
    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)
Пример #7
0
    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)
Пример #8
0
    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)
Пример #9
0
    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)
Пример #10
0
    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)
Пример #11
0
    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)
Пример #12
0
    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)
Пример #13
0
    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)
Пример #14
0
    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]')
Пример #15
0
    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]",
        )
Пример #16
0
 def __init__(self):
     """Initialize a PEP257TrapdoorProgram instance."""
     TrapdoorProgram.__init__(self, 'pep257')
Пример #17
0
 def __init__(self):
     """Initialize the PyCodeStyleTrapdoorProgram."""
     TrapdoorProgram.__init__(self, 'pycodestyle')
     self.config_file = os.path.join(self.qaworkdir, 'pycodestyle.ini')
Пример #18
0
 def __init__(self):
     """Initialize the ImportTrapdoorProgram."""
     TrapdoorProgram.__init__(self, 'import')
Пример #19
0
 def __init__(self):
     """Initialize the CoverageTrapdoorProgram."""
     TrapdoorProgram.__init__(self, 'coverage')
Пример #20
0
 def __init__(self):
     """Initialize the PyCodeStyleTrapdoorProgram."""
     TrapdoorProgram.__init__(self, 'pycodestyle')
Пример #21
0
 def __init__(self):
     """Initialize the ImportTrapdoorProgram."""
     TrapdoorProgram.__init__(self, 'import')
Пример #22
0
 def __init__(self):
     """Initialize the PyCodeStyleTrapdoorProgram."""
     TrapdoorProgram.__init__(self, 'pycodestyle')
     self.config_file = os.path.join(self.qaworkdir, 'pycodestyle.ini')
Пример #23
0
 def __init__(self):
     """Initialize the CPPLintTrapdoorProgram."""
     TrapdoorProgram.__init__(self, 'cpplint')
     self.cpplint_file = os.path.join(self.qaworkdir, 'cpplint.py')
Пример #24
0
 def __init__(self):
     """Initialize the CoverageTrapdoorProgram."""
     TrapdoorProgram.__init__(self, 'coverage')
Пример #25
0
 def __init__(self):
     """Initialize the CPPCheckTrandoorProgram."""
     TrapdoorProgram.__init__(self, 'cppcheck')
Пример #26
0
 def __init__(self):
     """Initialize the DoxygenTrapdoorProgram."""
     TrapdoorProgram.__init__(self, 'doxygen')
     self.doxyconf_file = os.path.abspath(
         os.path.join(self.qaworkdir, 'doxygen.conf'))
Пример #27
0
    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)
Пример #28
0
 def __init__(self):
     """Initialize a PylintTrapdoorProgram instance."""
     TrapdoorProgram.__init__(self, 'pylint')
     self.rcfile = os.path.join(self.qaworkdir, 'pylintrc')
Пример #29
0
 def __init__(self):
     """Initialize the CPPCheckTrandoorProgram."""
     TrapdoorProgram.__init__(self, 'cppcheck')
Пример #30
0
 def __init__(self):
     """Initialize the NamespaceTrapdoorProgram."""
     TrapdoorProgram.__init__(self, 'namespace')
Пример #31
0
 def __init__(self):
     """Initialize the CPPLintTrapdoorProgram."""
     TrapdoorProgram.__init__(self, 'cpplint')
     self.cpplint_file = os.path.join(self.qaworkdir, 'cpplint.py')
Пример #32
0
 def __init__(self):
     """Initialize the NamespaceTrapdoorProgram."""
     TrapdoorProgram.__init__(self, "namespace")
Пример #33
0
 def __init__(self):
     """Initialize a PyDocStyleTrapdoorProgram instance."""
     TrapdoorProgram.__init__(self, 'pydocstyle')
Пример #34
0
 def __init__(self):
     """Initialize the DoxygenTrapdoorProgram."""
     TrapdoorProgram.__init__(self, 'doxygen')
     self.doxyconf_file = os.path.abspath(os.path.join(self.qaworkdir, 'doxygen.conf'))
Пример #35
0
 def __init__(self):
     """Initialize a PylintTrapdoorProgram instance."""
     TrapdoorProgram.__init__(self, 'pylint')
     self.rcfile = os.path.join(self.qaworkdir, 'pylintrc')
Пример #36
0
 def __init__(self):
     """Initialize the PEP8TrapdoorProgram."""
     TrapdoorProgram.__init__(self, 'pep8')
     self.config_file = os.path.join(self.qaworkdir, 'pep8')
Пример #37
0
 def __init__(self):
     """Initialize a PyDocStyleTrapdoorProgram instance."""
     TrapdoorProgram.__init__(self, "pydocstyle")
Пример #38
0
 def __init__(self):
     """Initialize a PylintTrapdoorProgram instance."""
     TrapdoorProgram.__init__(self, 'pylint')