-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
34 lines (30 loc) · 1.08 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
34 lines (30 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Pre-commit configuration for Inventory Optimization project
# This ensures all tests pass before committing changes
repos:
- repo: local
hooks:
- id: inventory-optimization-tests
name: Run Inventory Optimization Tests
entry: python test_inventory_optimization.py
language: system
pass_filenames: false
always_run: true
stages: [pre-commit]
- id: python-linting
name: Python Linting
entry: python -m flake8 inventory_optimization.py test_inventory_optimization.py
language: system
files: \.py$
stages: [pre-commit]
- id: python-import-sorting
name: Python Import Sorting
entry: python -m isort inventory_optimization.py test_inventory_optimization.py
language: system
files: \.py$
stages: [pre-commit]
- id: python-formatting
name: Python Formatting
entry: python -m black inventory_optimization.py test_inventory_optimization.py
language: system
files: \.py$
stages: [pre-commit]