Skip to content

Commit

Permalink
Fully remove mypy, update pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
max-muoto committed Apr 29, 2024
1 parent a8be8de commit 0a2a9c5
Show file tree
Hide file tree
Showing 5 changed files with 464 additions and 558 deletions.
29 changes: 0 additions & 29 deletions .mypy.ini

This file was deleted.

15 changes: 3 additions & 12 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,7 @@ repos:
files: ^(instructor|tests|examples)/
- id: ruff-format # Run the formatter.
name: Run Formatter (Ruff)
- repo: local
- repo: https://github.com/RobertCraigie/pyright-python
rev: v1.1.360
hooks:
- id: ci_type_mypy
name: Run Type Check (Mypy)
entry: >
bash -c 'set -o pipefail;
export CUSTOM_PACKAGES="instructor/_types/_alias.py instructor/cli/cli.py instructor/cli/files.py instructor/cli/usage.py instructor/exceptions.py" &&
export CUSTOM_FLAGS="--python-version=3.9 --color-output --no-pretty --follow-imports=skip" &&
curl -sSL https://raw.githubusercontent.com/gao-hongnan/omniverse/2fd5de1b8103e955cd5f022ab016b72fa901fa8f/scripts/devops/continuous-integration/type_mypy.sh |
bash'
language: system
types: [python]
pass_filenames: false
- id: pyright
Loading

0 comments on commit 0a2a9c5

Please sign in to comment.