project_config.serializers.contrib.pre_commit module

Serializer for pre-commit files.

project_config.serializers.contrib.pre_commit.dumps(obj: Any, *args: tuple[Any], **kwargs: Any) str[source]

Dumps pre-commit configuration to YAML.

project_config.serializers.contrib.pre_commit.sort_pre_commit_config(instance: dict[str, Any]) dict[str, Any][source]

Sorts pre-commit-config.yaml files.