コード例 #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)
コード例 #3
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)
コード例 #4
0
ファイル: trapdoor_pylint.py プロジェクト: stevenvdb/horton
    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
ファイル: trapdoor_pep8.py プロジェクト: FarnazH/hortonqa
    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
ファイル: trapdoor_cpplint.py プロジェクト: FarnazH/hortonqa
    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
ファイル: trapdoor_coverage.py プロジェクト: tovrstra/horton
    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
ファイル: trapdoor_pep257.py プロジェクト: tovrstra/hortonqa
 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
ファイル: trapdoor_import.py プロジェクト: kumrud/horton
 def __init__(self):
     """Initialize the ImportTrapdoorProgram."""
     TrapdoorProgram.__init__(self, 'import')
コード例 #19
0
 def __init__(self):
     """Initialize the CoverageTrapdoorProgram."""
     TrapdoorProgram.__init__(self, 'coverage')
コード例 #20
0
ファイル: trapdoor_pycodestyle.py プロジェクト: kimt33/calcdb
 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
ファイル: trapdoor_coverage.py プロジェクト: crisely09/horton
 def __init__(self):
     """Initialize the CoverageTrapdoorProgram."""
     TrapdoorProgram.__init__(self, 'coverage')
コード例 #25
0
ファイル: trapdoor_cppcheck.py プロジェクト: stevenvdb/horton
 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
ファイル: trapdoor_pycodestyle.py プロジェクト: kimt33/calcdb
    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
ファイル: trapdoor_pylint.py プロジェクト: stevenvdb/horton
 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
ファイル: trapdoor_cpplint.py プロジェクト: FarnazH/hortonqa
 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
ファイル: trapdoor_pep8.py プロジェクト: FarnazH/hortonqa
 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')