Repository: sdv-dev/RDT (language: python)

Issue:
Switch default branch from master to main
### Problem Description

_To be consistent with other libraries and Github's standard we should rename the master branch to main._

### Expected behavior

- Follow the guidelines [here](https://github.com/github/renaming)
- Update references in the code as well

### Additional context

- Check all locations in the repo where we reference the master branch. A lot of make/invoke commands and workflows use the branch name. It is also in places in our docs.


Discussion / hints:

Fix patch:
diff --git a/.github/PULL_REQUEST_TEMPLATE/new_transformer.md b/.github/PULL_REQUEST_TEMPLATE/new_transformer.md
index 5859e5295..ced5dfb0a 100644
--- a/.github/PULL_REQUEST_TEMPLATE/new_transformer.md
+++ b/.github/PULL_REQUEST_TEMPLATE/new_transformer.md
@@ -10,7 +10,7 @@ __sdtype__: (replace this with the sdtype that your new transformer handles)
 - [ ] Have you implemented Unit tests for all the methods in your Transformer, and successfully run them?
 - [ ] If the sdtype that this Transformer addresses is new, have you added Dataset Generators and Real World Datasets for this new sdtype?
 - [ ] Have you successfully run the Integration tests on your Transformer?
-- [ ] Have you run the Performance tests, and optimized your transformer according to the [Common Performance Pitfalls](https://github.com/sdv-dev/RDT/blob/master/CONTRIBUTING.rst#common-performance-pitfalls)?
+- [ ] Have you run the Performance tests, and optimized your transformer according to the [Common Performance Pitfalls](https://github.com/sdv-dev/RDT/blob/main/CONTRIBUTING.rst#common-performance-pitfalls)?
 
 ----
-Please follow the [Contributing Guide](https://github.com/sdv-dev/RDT/blob/master/CONTRIBUTING.rst#contributing) to add a new transformer.
+Please follow the [Contributing Guide](https://github.com/sdv-dev/RDT/blob/main/CONTRIBUTING.rst#contributing) to add a new transformer.
diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst
index 4b73d3e70..474379b88 100644
--- a/CONTRIBUTING.rst
+++ b/CONTRIBUTING.rst
@@ -476,5 +476,5 @@ Summary of Steps to Add a New Transformer
 .. _Github actions page: https://github.com/sdv-dev/RDT/actions
 .. _nullable boolean type: https://pandas.pydata.org/pandas-docs/version/1.0/user_guide/boolean.html
 .. _RDT core contributors: https://github.com/orgs/sdv-dev/teams/core-contributors
-.. _dataset generator folder: https://github.com/sdv-dev/RDT/tree/master/tests/datasets
+.. _dataset generator folder: https://github.com/sdv-dev/RDT/tree/main/tests/datasets
 .. _Development Guide: DEVELOPMENT.rst
\ No newline at end of file
diff --git a/INSTALL.md b/INSTALL.md
index ce760ef3d..e938efae6 100644
--- a/INSTALL.md
+++ b/INSTALL.md
@@ -47,12 +47,12 @@ make install
 
 If you intend to modify the source code or contribute to the project you will need to
 install it from the source using the `make install-develop` command. In this case, we
-recommend you to branch from `master` first:
+recommend you to branch from `main` first:
 
 ```bash
 git clone git@github.com:sdv-dev/RDT
 cd RDT
-git checkout master
+git checkout main
 git checkout -b <your-branch-name>
 make install-develp
 ```
diff --git a/Makefile b/Makefile
index 336336ca4..bd3c18f83 100644
--- a/Makefile
+++ b/Makefile
@@ -150,14 +150,14 @@ publish-test: dist publish-confirm ## package and upload a release on TestPyPI
 publish: dist publish-confirm ## package and upload a release
 	twine upload dist/*
 
-.PHONY: git-merge-master-stable
-git-merge-master-stable: ## Merge master into stable
+.PHONY: git-merge-main-stable
+git-merge-main-stable: ## Merge main into stable
 	git checkout stable || git checkout -b stable
-	git merge --no-ff master -m"make release-tag: Merge branch 'master' into stable"
+	git merge --no-ff main -m"make release-tag: Merge branch 'main' into stable"
 
-.PHONY: git-merge-stable-master
-git-merge-stable-master: ## Merge stable into master
-	git checkout master
+.PHONY: git-merge-stable-main
+git-merge-stable-main: ## Merge stable into main
+	git checkout main
 	git merge stable
 
 .PHONY: git-push
@@ -191,7 +191,7 @@ bumpversion-major: ## Bump the version the next major skipping the release
 .PHONY: bumpversion-revert
 bumpversion-revert: ## Undo a previous bumpversion-release
 	git tag --delete $(shell git tag --points-at HEAD)
-	git checkout master
+	git checkout main
 	git branch -D stable
 
 CLEAN_DIR := $(shell git status --short | grep -v ??)
@@ -205,10 +205,10 @@ ifneq ($(CLEAN_DIR),)
 	$(error There are uncommitted changes)
 endif
 
-.PHONY: check-master
-check-master: ## Check if we are in master branch
-ifneq ($(CURRENT_BRANCH),master)
-	$(error Please make the release from master branch\n)
+.PHONY: check-main
+check-main: ## Check if we are in main branch
+ifneq ($(CURRENT_BRANCH),main)
+	$(error Please make the release from main branch\n)
 endif
 
 .PHONY: check-candidate
@@ -224,18 +224,18 @@ ifeq ($(CHANGELOG_LINES),0)
 endif
 
 .PHONY: check-release
-check-release: check-clean check-candidate check-master check-history ## Check if the release can be made
+check-release: check-clean check-candidate check-main check-history ## Check if the release can be made
 	@echo "A new release can be made"
 
 .PHONY: release
-release: check-release git-merge-master-stable bumpversion-release git-push-tags-stable \
-	publish git-merge-stable-master bumpversion-patch git-push
+release: check-release git-merge-main-stable bumpversion-release git-push-tags-stable \
+	publish git-merge-stable-main bumpversion-patch git-push
 
 .PHONY: release-test
-release-test: check-release git-merge-master-stable bumpversion-release bumpversion-revert
+release-test: check-release git-merge-main-stable bumpversion-release bumpversion-revert
 
 .PHONY: release-candidate
-release-candidate: check-master publish bumpversion-candidate git-push
+release-candidate: check-main publish bumpversion-candidate git-push
 
 .PHONY: release-candidate-test
-release-candidate-test: check-clean check-master publish-test
+release-candidate-test: check-clean check-main publish-test
diff --git a/README.md b/README.md
index 8bb254266..53b5525ec 100644
--- a/README.md
+++ b/README.md
@@ -8,14 +8,14 @@
 [![PyPi Shield](https://img.shields.io/pypi/v/RDT.svg)](https://pypi.python.org/pypi/RDT)
 [![Unit Tests](https://github.com/sdv-dev/RDT/actions/workflows/unit.yml/badge.svg)](https://github.com/sdv-dev/RDT/actions/workflows/unit.yml)
 [![Downloads](https://pepy.tech/badge/rdt)](https://pepy.tech/project/rdt)
-[![Coverage Status](https://codecov.io/gh/sdv-dev/RDT/branch/master/graph/badge.svg)](https://codecov.io/gh/sdv-dev/RDT)
+[![Coverage Status](https://codecov.io/gh/sdv-dev/RDT/branch/main/graph/badge.svg)](https://codecov.io/gh/sdv-dev/RDT)
 [![Slack](https://img.shields.io/badge/Community-Slack-blue?style=plastic&logo=slack)](https://bit.ly/sdv-slack-invite)
 
 <div align="left">
 <br/>
 <p align="center">
 <a href="https://github.com/sdv-dev/RDT">
-<img align="center" width=40% src="https://github.com/sdv-dev/SDV/blob/master/docs/images/RDT-DataCebo.png"></img>
+<img align="center" width=40% src="https://github.com/sdv-dev/SDV/blob/stable/docs/images/RDT-DataCebo.png"></img>
 </a>
 </p>
 </div>
@@ -28,7 +28,7 @@ RDT (Reversible Data Transforms) is a Python library that transforms raw data in
 data, ready for data science. The transforms are reversible, allowing you to convert from numerical
 data back into your original format.
 
-<img align="center" src="https://github.com/sdv-dev/SDV/blob/master/docs/images/rdt_main_tranformation.png"></img>
+<img align="center" src="https://github.com/sdv-dev/SDV/blob/stable/docs/images/rdt_main_tranformation.png"></img>
 
 
 # Install
@@ -173,7 +173,7 @@ To learn more about reversible data transformations, visit the [RDT Documentatio
 
 
 <div align="center">
-<a href="https://datacebo.com"><img align="center" width=40% src="https://github.com/sdv-dev/SDV/blob/master/docs/images/DataCebo.png"></img></a>
+<a href="https://datacebo.com"><img align="center" width=40% src="https://github.com/sdv-dev/SDV/blob/stable/docs/images/DataCebo.png"></img></a>
 </div>
 <br/>
 <br/>
diff --git a/RELEASE.md b/RELEASE.md
index 2d25e9b85..81a19108c 100644
--- a/RELEASE.md
+++ b/RELEASE.md
@@ -35,7 +35,7 @@ Clone the project and install the development requirements before start the rele
 ```bash
 git clone https://github.com/sdv-dev/RDT
 cd RDT
-git checkout master
+git checkout main
 make install-develop
 ```
 
@@ -184,7 +184,7 @@ Clone the project and install the development requirements. Alternatively, with
 ```bash
 git clone https://github.com/sdv-dev/SDV
 cd SDV
-git checkout master
+git checkout main
 make install-develop
 ```
 
diff --git a/rdt/transformers/addons/README.md b/rdt/transformers/addons/README.md
index 9d584685a..958279ff3 100644
--- a/rdt/transformers/addons/README.md
+++ b/rdt/transformers/addons/README.md
@@ -8,14 +8,14 @@
 [![PyPi Shield](https://img.shields.io/pypi/v/RDT.svg)](https://pypi.python.org/pypi/RDT)
 [![Unit Tests](https://github.com/sdv-dev/RDT/actions/workflows/unit.yml/badge.svg)](https://github.com/sdv-dev/RDT/actions/workflows/unit.yml)
 [![Downloads](https://pepy.tech/badge/rdt)](https://pepy.tech/project/rdt)
-[![Coverage Status](https://codecov.io/gh/sdv-dev/RDT/branch/master/graph/badge.svg)](https://codecov.io/gh/sdv-dev/RDT)
+[![Coverage Status](https://codecov.io/gh/sdv-dev/RDT/branch/main/graph/badge.svg)](https://codecov.io/gh/sdv-dev/RDT)
 [![Slack](https://img.shields.io/badge/Community-Slack-blue?style=plastic&logo=slack)](https://bit.ly/sdv-slack-invite)
 
 <div align="left">
 <br/>
 <p align="center">
 <a href="https://github.com/sdv-dev/RDT">
-<img align="center" width=40% src="https://github.com/sdv-dev/SDV/blob/master/docs/images/RDT-DataCebo.png"></img>
+<img align="center" width=40% src="https://github.com/sdv-dev/SDV/blob/stable/docs/images/RDT-DataCebo.png"></img>
 </a>
 </p>
 </div>
@@ -28,7 +28,7 @@ RDT (Reversible Data Transforms) is a Python library that transforms raw data in
 data, ready for data science. The transforms are reversible, allowing you to convert from numerical
 data back into your original format.
 
-<img align="center" src="https://github.com/sdv-dev/SDV/blob/master/docs/images/rdt_main_tranformation.png"></img>
+<img align="center" src="https://github.com/sdv-dev/SDV/blob/stable/docs/images/rdt_main_tranformation.png"></img>
 
 
 # Addons


Test patch:
diff --git a/tests/contributing.py b/tests/contributing.py
index 4e8586844..cc3d6bc9e 100644
--- a/tests/contributing.py
+++ b/tests/contributing.py
@@ -414,7 +414,7 @@ def check_clean_repository():
     """Check whether or not the repository has only expected changes.
 
     This function checks if there are unexpected changes on the current branch
-    against the master branch. If there are modifications outside ``rdt/transformers``,
+    against the main branch. If there are modifications outside ``rdt/transformers``,
     ``tests/unit``, ``tests/integration`` or ``tests/datasets`` this will return a ``False``.
 
     Returns:
@@ -422,7 +422,7 @@ def check_clean_repository():
             ``True`` if the changes are applied only to the expected subfolders, ``False``
             if any other file has been modified outside of that range.
     """
-    run_command = 'git diff --name-only master'.split(' ')
+    run_command = 'git diff --name-only main'.split(' ')
     output_capture = subprocess.run(run_command, capture_output=True).stdout.decode()
     output_capture = output_capture.splitlines()