forked from scaleapi/llm-engine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
51 lines (51 loc) · 1.46 KB
/
.pre-commit-config.yaml
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
repos:
- repo: https://github.com/psf/black
# Make sure to update requirements-dev-extra.txt to match versions!
rev: 22.12.0
hooks:
- id: black
name: "python:black"
entry: black --config .black.toml
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.278
hooks:
- id: ruff
name: "python:ruff"
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
name: "python:isort"
- repo: https://github.com/jazzband/pip-tools
rev: 6.6.2
hooks:
- id: pip-compile
files: server/requirements\.(in|txt)
args:
[
server/requirements.in,
--allow-unsafe,
--no-emit-index-url,
--no-emit-trusted-host,
--index-url=https://pypi.org/simple,
]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0 # https://github.com/pre-commit/pre-commit-hooks/releases
hooks:
- id: check-added-large-files
args:
- '--maxkb=1024' # no more than 1 MB, which is already quite generous!
- id: check-ast
language: python
- id: check-case-conflict
language: python
- id: check-json
language: python
- id: check-merge-conflict
language: python
- id: check-shebang-scripts-are-executable
language: python
- id: check-symlinks
language: python
- id: check-toml
language: python