setters#

Setter functions for a pyproject.toml config file.

add_dependency(pyproject: PyprojectTOML, package: str, optional_key: str | Sequence[str] | None = None) bool[source]#
create_sub_table(config: Mapping[str, Any], dotted_header: str) Table[source]#

Create a TOML sub-table through a dotted header key.

get_sub_table(config: Mapping[str, Any], dotted_header: str) MutableMapping[str, Any][source]#
remove_dependency(pyproject: PyprojectTOML, package: str, ignored_sections: Iterable[str] | None = None) bool[source]#