Skip to content

Commit 847c2d3

Browse files
committed
🚀 Added pre-commit config for gh workflow
1 parent 04a15bd commit 847c2d3

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

.pre-commit-config.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
repos:
2+
- repo: https://github.com/psf/black
3+
rev: 23.7.0 # Use the latest stable version available
4+
hooks:
5+
- id: black
6+
language_version: python3
7+
8+
- repo: https://github.com/PyCQA/isort
9+
rev: 5.12.0 # Update as appropriate
10+
hooks:
11+
- id: isort
12+
language_version: python3
13+
14+
- repo: https://github.com/PyCQA/flake8
15+
rev: 6.1.0 # Update as needed
16+
hooks:
17+
- id: flake8
18+
additional_dependencies: [flake8-bugbear] # optional extra checks
19+
20+
- repo: https://github.com/pre-commit/pre-commit-hooks
21+
rev: v4.6.0 # Update as needed
22+
hooks:
23+
- id: trailing-whitespace
24+
- id: end-of-file-fixer
25+
- id: check-yaml
26+
- id: debug-statements # Optional: fails if there are print() or debugger statements
27+

0 commit comments

Comments
 (0)