👷 [add] pre commit for code consistency
Browse files- .pre-commit-config.yaml +8 -0
.pre-commit-config.yaml
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
repos:
|
2 |
+
- repo: https://github.com/psf/black
|
3 |
+
rev: 24.4.0 # Use the appropriate version or "stable" for the latest stable release
|
4 |
+
hooks:
|
5 |
+
- id: black
|
6 |
+
language_version: python3 # Specify the Python version
|
7 |
+
exclude: '.*\.yaml$' # Regex pattern to exclude all YAML files
|
8 |
+
args: ["--line-length", "120"] # Set max line length to 100 characters
|