bugscpp.processor.core.data.Project

class Project[source]

Bases: object

Load and save project from path.

__init__()

Methods

__init__()

read_config(project_dir)

Read config file and return parsed options.

write_config(worktree)

Write config file to the directory.

static read_config(project_dir: Union[str, pathlib.Path]) Tuple[taxonomy.taxonomy.MetaData, bugscpp.processor.core.data.Worktree][source]

Read config file and return parsed options.

Parameters

project_dir (Union[str, Path]) – Path to where defect taxonomy is located.

Returns

Return a tuple of metadata and worktree information.

Return type

Tuple[taxonomy.MetaData, docker.Worktree]

static write_config(worktree: bugscpp.processor.core.data.Worktree) None[source]

Write config file to the directory.

Parameters

worktree (taxonomy.Worktree) – Worktree

Returns

Return type

None