Undocumented
Exception |
|
Undocumented |
Function | check |
Undocumented |
Function | convert |
Return a boolean value translating from other types if necessary. |
Function | destructure |
Take the new [[tool.mypy.overrides]] section array in the pyproject.toml file, and convert it back to a flatter structure that the existing config_parser can handle. |
Function | expand |
Expand the user home directory and any environment variables contained within the provided path. |
Function | get |
Undocumented |
Function | get |
Undocumented |
Function | is |
Undocumented |
Function | mypy |
Rewrite the mypy comment syntax into ini file syntax. |
Function | parse |
Parse a config file into an Options object. |
Function | parse |
Parse a collection of inline mypy: configuration comments. |
Function | parse |
Parse one section of a config file. |
Function | parse |
Undocumented |
Function | split |
Take a string representing a list of files/directories (with support for globbing through the glob library). |
Function | split |
Take a list of files/directories (with support for globbing through the glob library). |
Function | split |
Undocumented |
Function | split |
Split s on commas, except during quoted sections. |
Function | str |
Undocumented |
Function | try |
Split and trim a str or list of str into a list of str |
Function | validate |
Undocumented |
Constant | ini |
Undocumented |
Constant | toml |
Undocumented |
Type Alias | _CONFIG |
Undocumented |
Type Alias | _INI |
Undocumented |
Take the new [[tool.mypy.overrides]] section array in the pyproject.toml file, and convert it back to a flatter structure that the existing config_parser can handle. E.g. the following pyproject.toml file: [[tool.mypy.overrides]] module = [ "a.b", "b.*" ] disallow_untyped_defs = true [[tool.mypy.overrides]] module = 'c' disallow_untyped_defs = false Would map to the following config dict that it would have gotten from parsing an equivalent ini file: { "mypy-a.b": { disallow_untyped_defs = true, }, "mypy-b.*": { disallow_untyped_defs = true, }, "mypy-c": { disallow_untyped_defs: false, }, }
str
, template: Options
) -> tuple[ dict[ str, str], list[ str]]
:
(source)
¶
Rewrite the mypy comment syntax into ini file syntax. Returns
Options
, set_strict_flags: Callable[ [], None]
, filename: str|None
, stdout: TextIO|None
= None, stderr: TextIO|None
= None):
(source)
¶
Parse a config file into an Options object. Errors are written to stderr but are not fatal. If filename is None, fall back to default config files.
list[ tuple[ int, str]]
, template: Options
) -> tuple[ dict[ str, object], list[ tuple[ int, str]]]
:
(source)
¶
Parse a collection of inline mypy: configuration comments. Returns a dictionary of options to be applied and a list of error messages generated.
str
, template: Options
, set_strict_flags: Callable[ [], None]
, section: Mapping[ str, Any]
, config_types: dict[ str, Any]
, stderr: TextIO
= sys.stderr) -> tuple[ dict[ str, object], dict[ str, str]]
:
(source)
¶
Parse one section of a config file. Returns a dict of option values encountered, and a dict of report directories.
Take a string representing a list of files/directories (with support for globbing through the glob library). Where a path/glob matches no file, we still include the raw path in the resulting list. Returns a list of file paths
Take a list of files/directories (with support for globbing through the glob library). Where a path/glob matches no file, we still include the raw path in the resulting list. Returns a list of file paths
Undocumented
Value |
|