forked from phoenix/litellm-mirror
(ci/cd) use ruff
This commit is contained in:
parent
9a5e63d3e8
commit
02b5c03739
2 changed files with 9 additions and 14 deletions
|
@ -1,15 +1,14 @@
|
|||
repos:
|
||||
- repo: https://github.com/psf/black
|
||||
rev: 24.2.0
|
||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||
# Ruff version.
|
||||
rev: v0.4.8
|
||||
hooks:
|
||||
- id: black
|
||||
- repo: https://github.com/pycqa/flake8
|
||||
rev: 7.0.0 # The version of flake8 to use
|
||||
hooks:
|
||||
- id: flake8
|
||||
exclude: ^litellm/tests/|^litellm/proxy/proxy_cli.py|^litellm/proxy/tests/
|
||||
additional_dependencies: [flake8-print]
|
||||
files: litellm/.*\.py
|
||||
# Run the linter.
|
||||
- id: ruff
|
||||
exclude: ^litellm/tests/|^litellm/proxy/proxy_cli.py|^litellm/proxy/tests/
|
||||
# Run the formatter.
|
||||
- id: ruff-format
|
||||
exclude: ^litellm/tests/|^litellm/proxy/proxy_cli.py|^litellm/proxy/tests/
|
||||
- repo: local
|
||||
hooks:
|
||||
- id: check-files-match
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue