forked from kernelci/pullab_cloud
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
29 lines (26 loc) · 886 Bytes
/
Copy path.pre-commit-config.yaml
File metadata and controls
29 lines (26 loc) · 886 Bytes
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
repos:
- repo: https://github.com/psf/black
rev: 22.12.0
hooks:
- id: black
language_version: python3
- repo: local
hooks:
- id: pylint
name: pylint
entry: pylint
language: system
types: [python]
args: [--max-line-length=120]
- id: clean-logs
name: clean-logs
entry: bash -c 'find logs -type d -name "run_*" -exec rm -rf {} + 2>/dev/null || true; echo "✓ Cleaned up log directories"'
language: system
pass_filenames: false
always_run: true
- id: clean-integration-test-logs
name: clean-integration-test-logs
entry: bash -c 'find logs tests/integration/logs -type d -name "run_*" -exec rm -rf {} + 2>/dev/null || true; echo "✓ Cleaned up log directories"'
language: system
pass_filenames: false
always_run: true