Elffuss BraidHub

kikocis/llama-stack public

main · 1.3 KiBRawPermalink
1exclude: 'build'
2
3default_language_version:
4 python: python3
5
6repos:
7- repo: https://github.com/pre-commit/pre-commit-hooks
8 rev: 6306a48f7dae5861702d573c9c247e4e9498e867
9 hooks:
10 - id: trailing-whitespace
11 - id: check-ast
12 - id: check-merge-conflict
13 - id: check-added-large-files
14 args: ['--maxkb=1000']
15 - id: end-of-file-fixer
16 exclude: '^(.*\.svg)$'
17
18# Temporarily disabling this
19# - id: no-commit-to-branch
20# args: ['--branch=main']
21
22- repo: https://github.com/Lucas-C/pre-commit-hooks
23 rev: v1.5.4
24 hooks:
25 - id: insert-license
26 files: \.py$|\.sh$
27 args:
28 - --license-filepath
29 - docs/license_header.txt
30
31- repo: https://github.com/pycqa/flake8
32 rev: 34cbf8ef3950f43d09b85e2e45c15ae5717dc37b
33 hooks:
34 - id: flake8
35 additional_dependencies:
36 - flake8-bugbear == 22.4.25
37 - pep8-naming == 0.12.1
38 - torchfix
39 args: ['--config=.flake8']
40
41- repo: https://github.com/omnilib/ufmt
42 rev: v2.7.0
43 hooks:
44 - id: ufmt
45 additional_dependencies:
46 - black == 24.4.2
47 - usort == 1.0.8
48
49# - repo: https://github.com/jsh9/pydoclint
50# rev: d88180a8632bb1602a4d81344085cf320f288c5a
51# hooks:
52# - id: pydoclint
53# args: [--config=pyproject.toml]