config.load_config
config.load_config(package_path)Load pycmdcheck configuration from pyproject.toml.
Reads the [tool.pycmdcheck] section from the package’s pyproject.toml and merges it with default configuration. If no pyproject.toml exists or it doesn’t contain pycmdcheck configuration, returns defaults.
Parameters
package_path : Path-
Path to the package directory containing pyproject.toml.
Returns
Examples
>>> from pathlib import Path
>>> config = load_config(Path("."))
>>> config["fail_on"]
['error']
>>> config["checks"]["tests"]["runner"]
'pytest'