validate_pyproject.pre_compile package#
Submodules#
validate_pyproject.pre_compile.cli module#
- class validate_pyproject.pre_compile.cli.CliParams(plugins, output_dir, main_file, replacements, loglevel)[source]#
Bases:
NamedTuple
- output_dir: pathlib.Path#
Alias for field number 1
- plugins: List[validate_pyproject.plugins.PluginWrapper]#
Alias for field number 0
- validate_pyproject.pre_compile.cli.parser_spec(plugins: Sequence[validate_pyproject.plugins.PluginWrapper]) Dict[str, dict] [source]#
Module contents#
- validate_pyproject.pre_compile.copy_fastjsonschema_exceptions(output_dir: pathlib.Path, replacements: Dict[str, str]) pathlib.Path [source]#
- validate_pyproject.pre_compile.copy_module(name: str, output_dir: pathlib.Path, replacements: Dict[str, str]) pathlib.Path [source]#
- validate_pyproject.pre_compile.pre_compile(output_dir: Union[str, os.PathLike] = '.', main_file: str = '__init__.py', original_cmd: str = '', plugins: Union[validate_pyproject.api.AllPlugins, Sequence[PluginWrapper]] = AllPlugins.ALL_PLUGINS, text_replacements: Mapping[str, str] = mappingproxy({'from fastjsonschema import': 'from .fastjsonschema_exceptions import'})) pathlib.Path [source]#
Populate the given
output_dir
with all files necessary to perform the validation. The validation can be performed by calling thevalidate
function inside the the file named with themain_file
value.text_replacements
can be used to
- validate_pyproject.pre_compile.write_main(file_path: pathlib.Path, schema: validate_pyproject.types.Schema, replacements: Dict[str, str]) pathlib.Path [source]#
- validate_pyproject.pre_compile.write_notice(out: pathlib.Path, main_file: str, cmd: str, replacements: Dict[str, str]) pathlib.Path [source]#