コード例 #1
0
def test_flake8():
    rc, errors = main_with_errors(argv=[])
    assert rc == 0, \
        'Found %d code style errors / warnings:\n' % len(errors) + \
        '\n'.join(errors)
コード例 #2
0
ファイル: test_flake8.py プロジェクト: threeal/ament_lint
def test_flake8():
    excluded = ['cmakelint.py']
    rc, errors = main_with_errors(argv=['--exclude'] + excluded)
    assert rc == 0, \
        'Found %d code style errors / warnings:\n' % len(errors) + \
        '\n'.join(errors)
コード例 #3
0
ファイル: test_flake8.py プロジェクト: 5l1v3r1/examples-2
def test_flake8():
    # Test is called from package root
    rc, errors = main_with_errors(argv=['.'])
    assert rc == 0, \
        'Found %d code style errors / warnings:\n' % len(errors) + \
        '\n'.join(errors)
コード例 #4
0
ファイル: test_flake8.py プロジェクト: sscpac/rqt_dotgraph
def test_flake8():
    """Run flake8 on the package."""
    return_code, errors = main_with_errors(argv=["--config", ".flake8"])
    assert (  # nosec
        return_code == 0
    ), f"Found {len(errors)} code style errors / warnings:\n\n".join(errors)
コード例 #5
0
def test_flake8():
    """Run flake8 on the package."""
    return_code, errors = main_with_errors(argv=["--config", ".flake8"])
    assert return_code == 0, "Found %d code style errors / warnings:\n" % len(  # nosec
        errors) + "\n".join(errors)