diff --git a/.forgejo/workflows/pre-commit.yaml b/.forgejo/workflows/pre-commit.yaml
new file mode 100644
index 0000000..aec3809
--- /dev/null
+++ b/.forgejo/workflows/pre-commit.yaml
@@ -0,0 +1,14 @@
+name: pre-commit
+
+on:
+  pull_request:
+  push:
+
+jobs:
+  pre-commit:
+    runs-on: self-hosted
+    steps:
+    - name: Checkout repository
+      uses: actions/checkout@v4
+    - name: Pre-commit
+      run: pre-commit run --show-diff-on-failure --color=always --all-files
diff --git a/README.md b/README.md
index 7c15051..990c2a0 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,7 @@
 # HassPy
 
+[![Forgejo Actions](https://git.edgarpierre.fr/edpibu/hasspy/badges/workflows/pre-commit.yaml/badge.svg)](https://git.edgarpierre.fr/edpibu/hasspy/actions?workflow=pre-commit.yaml)
+
 ![](icon.svg)
 
 Utilitaire qui permet de contrĂ´ler un ordinateur sur Linux via Home Assistant.