module documentation

Config file processing.

Class ArgInfo Undocumented
Class FileConfig Configuration variables from a file.
Class Item Undocumented
Function concat_disabled_rules Undocumented
Function Config Builds a Config class and returns an instance of it.
Function generate_sample_config_or_die Write out a sample config file.
Function get_platform Undocumented
Function get_python_version Undocumented
Function get_pytype_single_item Undocumented
Function make_converters For items that need coaxing into their internal representations.
Function make_formatters Undocumented
Function parse_jobs Parse the --jobs option.
Function read_config_file_or_die Read config from filepath or from setup.cfg.
Function string_to_bool Undocumented
Constant ITEMS Undocumented
Constant REPORT_ERRORS_ITEMS Undocumented
Function _make_path_formatter Formatter for a string of paths.
Function _pytype_single_items Args to pass through to pytype_single.
Function _toml_format Undocumented
Constant _PYTYPE_SINGLE_ITEMS Undocumented
Constant _TOML Undocumented
def concat_disabled_rules(s): (source)

Undocumented

def Config(*extra_variables): (source)

Builds a Config class and returns an instance of it.

def generate_sample_config_or_die(filename, pytype_single_args): (source)

Write out a sample config file.

def get_platform(p): (source)

Undocumented

def get_python_version(v): (source)

Undocumented

def get_pytype_single_item(name): (source)

Undocumented

def make_converters(cwd=None): (source)

For items that need coaxing into their internal representations.

def make_formatters(ext): (source)

Undocumented

def parse_jobs(s): (source)

Parse the --jobs option.

def read_config_file_or_die(filepath): (source)

Read config from filepath or from setup.cfg.

def string_to_bool(s): (source)

Undocumented

Undocumented

Value
{'exclude': Item('',
                 '**/*_test.py **/test_*.py',
                 None,
                 'Space-separated list of files or directories to exclude.'),
 'inputs': Item('',
                '.',
                None,
...
REPORT_ERRORS_ITEMS = (source)

Undocumented

Value
{'disable': Item(None,
                 'pyi-error',
                 ArgInfo('--disable', """,""".join),
                 'Space-separated list of error names to ignore.'),
 'report_errors': Item(None,
                       'True',
                       ArgInfo('--no-report-errors', (lambda v: not v)),
...
def _make_path_formatter(ext): (source)

Formatter for a string of paths.

def _pytype_single_items(): (source)

Args to pass through to pytype_single.

def _toml_format(v): (source)

Undocumented

_PYTYPE_SINGLE_ITEMS = (source)

Undocumented

Value
_pytype_single_items()

Undocumented

Value
'.toml'