chore(pre-commit): add pre-commit configuration file

A new pre-commit configuration file, `.pre-commit-config.yaml`, has been added. This file specifies the repository and version of the pre-commit hooks to be used. It also includes a hook called `no-commit-to-branch` with the argument `--branch main`, which prevents commits to the `main` branch.
This commit is contained in:
mauvehed 2023-07-29 14:00:20 -05:00
parent 2e3f4190ad
commit 7ed6d2357d

6
.pre-commit-config.yaml Normal file
View file

@ -0,0 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.3.0
hooks:
- id: no-commit-to-branch
args: ['--branch', 'main']