# About transformers

A DeepSource Transformer automatically 'transforms' all incoming source code in a repository with popular code auto-formatters (for e.g., black, gofmt, etc.).

The following table lists all supported transformers and their shortcodes.

Transformer Release Shortcode
Black Beta black
Go Fmt Beta gofmt
Yapf Beta yapf
Autopep8 Beta autopep8

# Behavior

For all repositories which have at least one transformer enabled in config, if:

  • A Pull/Merge Request is raised with the default branch as base, a transforming commit is added to that branch.
  • A commit is created on the default branch, DeepSource raises a Pull/Merge Request with transforming changes.


When transformers are first introduced in .deepsource.toml (in default branch), the entire code base is transformed. Afterwards, only the files which are added/updated in a commit/PR/MR are transformed.

Last Updated: 8/10/2020, 3:25:16 PM