|
1 | 1 | repos:
|
2 |
| -# Standard hooks |
3 |
| -- repo: https://github.com/pre-commit/pre-commit-hooks |
4 |
| - rev: v4.4.0 |
5 |
| - hooks: |
6 |
| - - id: check-ast |
7 |
| - exclude: ^docs/ |
8 |
| - - id: check-docstring-first |
9 |
| - exclude: ^(docs/|tests/) |
10 |
| - - id: check-json |
11 |
| - - id: check-merge-conflict |
12 |
| - - id: check-yaml |
13 |
| - exclude: feature_store_*.yaml |
14 |
| - args: ['--allow-multiple-documents'] |
15 |
| - - id: detect-private-key |
16 |
| - - id: end-of-file-fixer |
17 |
| - exclude: '\.ipynb?$' |
18 |
| - - id: pretty-format-json |
19 |
| - args: ['--autofix'] |
20 |
| - - id: trailing-whitespace |
21 |
| - args: [--markdown-linebreak-ext=md] |
22 |
| - exclude: ^docs/ |
23 |
| -# Black, the code formatter, natively supports pre-commit |
24 |
| -- repo: https://github.com/psf/black |
25 |
| - rev: 23.3.0 |
26 |
| - hooks: |
27 |
| - - id: black |
28 |
| - exclude: ^docs/ |
29 |
| -# Regex based rst files common mistakes detector |
30 |
| -- repo: https://github.com/pre-commit/pygrep-hooks |
31 |
| - rev: v1.10.0 |
32 |
| - hooks: |
33 |
| - - id: rst-backticks |
34 |
| - files: ^docs/ |
35 |
| - - id: rst-inline-touching-normal |
36 |
| - files: ^docs/ |
37 |
| -# Hardcoded secrets and ocids detector |
38 |
| -- repo: https://github.com/gitleaks/gitleaks |
39 |
| - rev: v8.17.0 |
40 |
| - hooks: |
41 |
| - - id: gitleaks |
42 |
| - exclude: .github/workflows/reusable-actions/set-dummy-conf.yml |
43 |
| -# Oracle copyright checker |
44 |
| -- repo: https://github.com/oracle-samples/oci-data-science-ai-samples/ |
45 |
| - rev: cbe0136f7aaffe463b31ddf3f34b0e16b4b124ff |
46 |
| - hooks: |
47 |
| - - id: check-copyright |
48 |
| - name: check-copyright |
49 |
| - entry: .pre-commit-scripts/check-copyright.py |
50 |
| - language: script |
51 |
| - types_or: ['python', 'shell', 'bash'] |
52 |
| - exclude: ^docs/ |
| 2 | + # Standard hooks |
| 3 | + - repo: https://github.com/pre-commit/pre-commit-hooks |
| 4 | + rev: v4.4.0 |
| 5 | + hooks: |
| 6 | + - id: check-ast |
| 7 | + exclude: ^docs/ |
| 8 | + - id: check-docstring-first |
| 9 | + exclude: ^(docs/|tests/) |
| 10 | + - id: check-json |
| 11 | + - id: check-merge-conflict |
| 12 | + - id: check-yaml |
| 13 | + exclude: feature_store_*.yaml |
| 14 | + args: ["--allow-multiple-documents"] |
| 15 | + - id: detect-private-key |
| 16 | + - id: end-of-file-fixer |
| 17 | + exclude: '\.ipynb?$' |
| 18 | + - id: pretty-format-json |
| 19 | + args: ["--autofix"] |
| 20 | + - id: trailing-whitespace |
| 21 | + args: [--markdown-linebreak-ext=md] |
| 22 | + exclude: ^docs/ |
| 23 | + # Black, the code formatter, natively supports pre-commit |
| 24 | + - repo: https://github.com/psf/black |
| 25 | + rev: 23.3.0 |
| 26 | + hooks: |
| 27 | + - id: black |
| 28 | + exclude: ^docs/ |
| 29 | + # Regex based rst files common mistakes detector |
| 30 | + - repo: https://github.com/pre-commit/pygrep-hooks |
| 31 | + rev: v1.10.0 |
| 32 | + hooks: |
| 33 | + - id: rst-backticks |
| 34 | + files: ^docs/ |
| 35 | + - id: rst-inline-touching-normal |
| 36 | + files: ^docs/ |
| 37 | + # Hardcoded secrets and ocids detector |
| 38 | + - repo: https://github.com/gitleaks/gitleaks |
| 39 | + rev: v8.17.0 |
| 40 | + hooks: |
| 41 | + - id: gitleaks |
| 42 | + exclude: .github/workflows/reusable-actions/set-dummy-conf.yml |
| 43 | + # Oracle copyright checker |
| 44 | + - repo: https://github.com/oracle-samples/oci-data-science-ai-samples/ |
| 45 | + rev: 1bc5270a443b791c62f634233c0f4966dfcc0dd6 |
| 46 | + hooks: |
| 47 | + - id: check-copyright |
| 48 | + name: check-copyright |
| 49 | + entry: .pre-commit-scripts/check-copyright.py |
| 50 | + language: script |
| 51 | + types_or: ["python", "shell", "bash"] |
| 52 | + exclude: ^docs/ |
0 commit comments