Files
instructor/.pre-commit-config.yaml
T
2023-12-12 15:09:59 -05:00

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