mirror of
https://github.com/kennethreitz/instructor.git
synced 2026-06-05 22:50:18 +00:00
94e32968db
Co-authored-by: Jason Liu <jxnl@users.noreply.github.com>
24 lines
786 B
YAML
24 lines
786 B
YAML
repos:
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
# Ruff version.
|
|
rev: v0.1.7
|
|
hooks:
|
|
# Run the linter.
|
|
- id: ruff
|
|
args: [ --fix ]
|
|
# Run the formatter.
|
|
- id: ruff-format
|
|
- repo: local
|
|
hooks:
|
|
- id: ci_type_mypy
|
|
name: Static Type Check
|
|
entry: >
|
|
bash -c 'set -o pipefail;
|
|
export CUSTOM_PACKAGES="instructor/cli/cli.py instructor/cli/usage.py" &&
|
|
export CUSTOM_FLAGS="--python-version=3.9 --color-output --no-pretty" &&
|
|
curl -sSL https://raw.githubusercontent.com/gao-hongnan/omniverse/continuous-integration/scripts/devops/continuous-integration/type_mypy.sh |
|
|
bash'
|
|
language: system
|
|
types: [python]
|
|
pass_filenames: false
|