nmk_python.files

Python files resolvers

Classes

FilesFinder

Shared logic for files resolution

PythonFilesFinder

Regular python files resolver

PythonTestFilesFinder

Test python files resolver

Module Contents

class nmk_python.files.FilesFinder(model: nmk.model.model.NmkModel)

Bases: nmk.model.resolver.NmkListConfigResolver

Shared logic for files resolution

abstractmethod find_in_folders() list[str]

Folders to be browsed (to be overridden)

Returns:

List of folders to be browsed for python files

get_value(name: str) list[pathlib.Path]

Browse for source files in specified folders

Parameters:

name – Config item name

Returns:

List of found source files

class nmk_python.files.PythonFilesFinder(model: nmk.model.model.NmkModel)

Bases: FilesFinder

Regular python files resolver

find_in_folders() list[str]

Python source folders

get_value(name: str) list[pathlib.Path]

Browse for python files in specified folders

Also and make sure they don’t overlap with generated and test source code

class nmk_python.files.PythonTestFilesFinder(model: nmk.model.model.NmkModel)

Bases: FilesFinder

Test python files resolver

find_in_folders() list[str]

Python tests source folders