mirror of
https://github.com/agresdominik/predictify.git
synced 2026-04-21 17:55:49 +00:00
Pre commit hook
This commit is contained in:
@@ -0,0 +1,28 @@
|
|||||||
|
# .pre-commit-config.yaml
|
||||||
|
|
||||||
|
repos:
|
||||||
|
|
||||||
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
|
rev: v5.0.0
|
||||||
|
hooks:
|
||||||
|
- id: trailing-whitespace # Remove trailing whitespace
|
||||||
|
- id: end-of-file-fixer # Ensure a single newline at the end of a file
|
||||||
|
- id: check-yaml # Check if the YAML files are valid
|
||||||
|
- id: check-json # Check if the JSON files are valid
|
||||||
|
- id: check-added-large-files # Prevent large files from being committed
|
||||||
|
args: ['--maxkb=1000']
|
||||||
|
- id: check-ast # Check for parse errors in Python files
|
||||||
|
- id: debug-statements # Check for print statements and pdb calls
|
||||||
|
- id: end-of-file-fixer # Ensure a single newline at the end of a file
|
||||||
|
|
||||||
|
- repo: https://github.com/PyCQA/isort
|
||||||
|
rev: 5.13.2
|
||||||
|
hooks:
|
||||||
|
- id: isort
|
||||||
|
args: ['--profile=black']
|
||||||
|
|
||||||
|
- repo: https://github.com/PyCQA/flake8
|
||||||
|
rev: 7.1.1
|
||||||
|
hooks:
|
||||||
|
- id: flake8
|
||||||
|
args: ['--extend-ignore=E501,E402,W503,E721','--max-line-length=100']
|
||||||
@@ -1,2 +1,3 @@
|
|||||||
python-dotenv==1.0.1
|
python-dotenv==1.0.1
|
||||||
requests==2.32.3
|
requests==2.32.3
|
||||||
|
pre-commit==4.1.0
|
||||||
|
|||||||
Reference in New Issue
Block a user