project_config.serializers.editorconfig module

Editorconfig INI-like configuration file to JSON converter.

Based on https://github.com/editorconfig/editorconfig-core-py/blob/master/editorconfig/ini.py

project_config.serializers.editorconfig._pyobject_to_ini_str(obj: Any) str[source]

Converts a Python object to a string.

Parameters:

obj (Any) – Python object.

Returns:

String representation of the object.

Return type:

str

project_config.serializers.editorconfig.dumps(obj: Any) str[source]

Converts a JSON object to a .editorconfig configuration file string.

Parameters:

obj (Any) – JSON object.

project_config.serializers.editorconfig.loads(string: str) EditorConfigConfigType[source]

Converts a .editorconfig configuration file string to JSON.

Parameters:

string (str) – Configuration file string.