diff --git a/.copier-answers.autopretty.yml b/.copier-answers.autopretty.yml
index 938184a6470e50fcaa6232ff5d75aa63ed967339..9e54e3ead4095bcecc57424b1eb8a1cc9d91feaa 100644
--- a/.copier-answers.autopretty.yml
+++ b/.copier-answers.autopretty.yml
@@ -1,10 +1,9 @@
 # Changes here will be overwritten by Copier; do NOT edit manually
-_commit: v0.1.0a5
+_commit: v0.1.0a6
 _src_path: https://github.com/copier-org/autopretty.git
 ansible: false
 biggest_kbs: 0
 github: true
 js: false
-protected_branches:
-  - master
+protected_branches: []
 python: true
diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml
index 1479882a3c32be2eb6cf02f41f18bbd94dd84cc3..2078fcbf747e2a1d2a1b29d768b9a8949ab0af98 100644
--- a/.github/workflows/pre-commit.yml
+++ b/.github/workflows/pre-commit.yml
@@ -4,6 +4,7 @@ on:
   pull_request:
   push:
     branches:
+      - main
       - master
 
 jobs:
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index adaa4391d29bb800c86df8fbb4c43a2706cea71d..4a04d736fdc17f36a9f87c73afad4db4858740fa 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -10,34 +10,6 @@ repos:
         entry: found forbidden files; remove them
         language: fail
         files: "\\.rej$"
-  - repo: https://github.com/pre-commit/pre-commit-hooks
-    rev: v3.2.0
-    hooks:
-      - id: check-case-conflict
-      - id: check-executables-have-shebangs
-      - id: check-json
-      - id: check-merge-conflict
-      - id: check-symlinks
-      - id: check-toml
-      - id: check-xml
-      - id: check-yaml
-      - id: detect-private-key
-      - id: end-of-file-fixer
-      - id: mixed-line-ending
-        args:
-          - --fix=lf
-      - id: no-commit-to-branch
-        args:
-          - --branch=master
-      - id: trailing-whitespace
-      - id: check-ast
-      - id: check-builtin-literals
-      - id: check-docstring-first
-      - id: debug-statements
-      - id: fix-encoding-pragma
-        args:
-          - --remove
-      - id: requirements-txt-fixer
   - repo: https://github.com/pre-commit/mirrors-prettier
     rev: v2.1.2
     hooks:
@@ -87,3 +59,28 @@ repos:
           # ignore unused imports in __init__.py
           - --extend-ignore=F401
         files: /__init__\.py$
+  - repo: https://github.com/pre-commit/pre-commit-hooks
+    rev: v3.2.0
+    hooks:
+      - id: check-case-conflict
+      - id: check-executables-have-shebangs
+      - id: check-json
+      - id: check-merge-conflict
+      - id: check-symlinks
+      - id: check-toml
+      - id: check-xml
+      - id: check-yaml
+      - id: detect-private-key
+      - id: end-of-file-fixer
+      - id: mixed-line-ending
+        args:
+          - --fix=lf
+      - id: trailing-whitespace
+      - id: check-ast
+      - id: check-builtin-literals
+      - id: check-docstring-first
+      - id: debug-statements
+      - id: fix-encoding-pragma
+        args:
+          - --remove
+      - id: requirements-txt-fixer