third_party/blink/tools/blinkpy/w3c/common.py
def is_disallowed_ini(filename):
    """Checks whether the file is a disallowed (.ini) file.

    This is primarily intended to skip WPT metadata .ini files, which are used
    in WPT to set expected statuses for tests. Chromium maintains its own list
    of such files and we don't want those to be shared with upstream.

    There are a few .ini files that we do allow, which are mostly configuration
    files for wptrunner.

    Args:
        filename: the basename of the file to check
    """
    if not filename.endswith('.ini'):
        return False
    allowed_inis = [
        # Configuration for mypy support
        'mypy.ini',
        # Configuration of wpt lint
        'py27-flake8.ini',
        'py3-flake8.ini',
        # Configuration of wpt framework unit tests
        'pytest.ini',
        'tox.ini',
        # Contains default locations of tests and manifest for wptrunner.
        # Required for wptrunner to work.
        'wptrunner.default.ini',
    ]
    return filename not in allowed_inis
Checks whether the file is a disallowed (.ini) file.

    This is primarily intended to skip WPT metadata .ini files, which are used
    in WPT to set expected statuses for tests. Chromium maintains its own list
    of such files and we don't want those to be shared with upstream.

    There are a few .ini files that we do allow, which are mostly configuration
    files for wptrunner.

    Args:
        filename: the basename of the file to check
    
Checks whether the file is a disallowed (.ini) file.
This is primarily intended to skip WPT metadata .ini files, which are used
in WPT to set expected statuses for tests. Chromium maintains its own list
of such files and we don't want those to be shared with upstream.

There are a few .ini files that we do allow, which are mostly configuration
files for wptrunner.
Checks whether the file is a disallowed ( . ini ) file . This is primarily intended to skip WPT metadata . ini files which are used in WPT to set expected statuses for tests . Chromium maintains its own list of such files and we don ' t want those to be shared with upstream . There are a few . ini files that we do allow which are mostly configuration files for wptrunner .
def is_disallowed_ini(filename):
    if not filename.endswith('.ini'):
        return False
    allowed_inis = [
        'mypy.ini',
        'py27-flake8.ini',
        'py3-flake8.ini',
        'pytest.ini',
        'tox.ini',
        'wptrunner.default.ini',
    ]
    return filename not in allowed_inis
def is_disallowed_ini ( filename ) : if not filename . endswith ( '.ini' ) : return False allowed_inis = [ 'mypy.ini' , 'py27-flake8.ini' , 'py3-flake8.ini' , 'pytest.ini' , 'tox.ini' , 'wptrunner.default.ini' , ] return filename not in allowed_inis
Checks whether the file is a disallowed (.ini) file.
Checks whether the file is a disallowed ( . ini ) file .
"""Checks whether the file is a disallowed (.ini) file.

    This is primarily intended to skip WPT metadata .ini files, which are used
    in WPT to set expected statuses for tests. Chromium maintains its own list
    of such files and we don't want those to be shared with upstream.

    There are a few .ini files that we do allow, which are mostly configuration
    files for wptrunner.

    Args:
        filename: the basename of the file to check
    """ # Configuration for mypy support # Configuration of wpt lint # Configuration of wpt framework unit tests # Contains default locations of tests and manifest for wptrunner. # Required for wptrunner to work.
filename
the basename of the file to check
the basename of the file to check