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
- plugins: List[PluginWrapper]#
Alias for field number 0
Module contents#
- validate_pyproject.pre_compile.copy_fastjsonschema_exceptions(output_dir: Path, replacements: Dict[str, str]) Path [source]#
- validate_pyproject.pre_compile.copy_module(name: str, output_dir: Path, replacements: Dict[str, str]) Path [source]#
- validate_pyproject.pre_compile.pre_compile(output_dir: str | PathLike = '.', main_file: str = '__init__.py', original_cmd: str = '', plugins: AllPlugins | Sequence[PluginWrapper] = AllPlugins.ALL_PLUGINS, text_replacements: Mapping[str, str] = mappingproxy({'from fastjsonschema import': 'from .fastjsonschema_exceptions import'})) 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