Skip to content

Commit

Permalink
Merge pull request #112 from PrefectHQ/revert-revert
Browse files Browse the repository at this point in the history
Add mypy
  • Loading branch information
jlowin authored Jun 14, 2024
2 parents 5e78b15 + 20a03b3 commit 144b38b
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,19 @@ repos:
hooks:
# Run the linter.
- id: ruff
args: [ --fix ]
args: [--fix]
# Run the formatter.
- id: ruff-format
- id: ruff-format

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.9.0
hooks:
- id: mypy
additional_dependencies:
- pydantic>=2,<3.0.0
- langchain_core
- langchain_anthropic
- langchain_openai
- langchain_google_genai
files: ^(src/controlflow/llm/models.py)$
args: [--strict]
4 changes: 4 additions & 0 deletions mypy.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[mypy]
strict=true
follow_imports = skip
files = 'src/controlflow/llm/models.py', 'tests/llm/test_models.py'
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ dev = [
"pre-commit",
"ruff>=0.3.4",
"textual-dev",
"mypy",
]

[build-system]
Expand Down

0 comments on commit 144b38b

Please sign in to comment.