mirror of
https://github.com/aljazceru/gpt-engineer.git
synced 2025-12-17 12:45:26 +01:00
Add mypy (#224)
This commit is contained in:
committed by
GitHub
parent
4218c19fe2
commit
698eb8a6fd
1
.gitignore
vendored
1
.gitignore
vendored
@@ -30,6 +30,7 @@ ENV/
|
||||
.pytest_cache/
|
||||
.ruff_cache/
|
||||
.coverage
|
||||
.mypy_cache/
|
||||
|
||||
# macOS specific files
|
||||
.DS_Store
|
||||
|
||||
@@ -25,3 +25,8 @@ repos:
|
||||
id: detect-private-key
|
||||
id: end-of-file-fixer
|
||||
id: trailing-whitespace
|
||||
|
||||
- repo: https://github.com/pre-commit/mirrors-mypy
|
||||
rev: v1.3.0
|
||||
hooks:
|
||||
- id: mypy
|
||||
|
||||
0
gpt_engineer/__init__.py
Normal file
0
gpt_engineer/__init__.py
Normal file
@@ -4,3 +4,4 @@ pre-commit==3.3.3
|
||||
ruff==0.0.272
|
||||
typer==0.9.0
|
||||
pytest==7.3.1
|
||||
mypy==1.3.0
|
||||
@@ -6,6 +6,7 @@ import subprocess
|
||||
|
||||
from itertools import islice
|
||||
from pathlib import Path
|
||||
from typing import Iterable
|
||||
|
||||
from typer import run
|
||||
|
||||
@@ -15,7 +16,7 @@ def main(
|
||||
):
|
||||
path = Path("benchmark")
|
||||
|
||||
folders = path.iterdir()
|
||||
folders: Iterable[Path] = path.iterdir()
|
||||
|
||||
if n_benchmarks:
|
||||
folders = islice(folders, n_benchmarks)
|
||||
|
||||
Reference in New Issue
Block a user