This commit is contained in:
Romain d'Esparbès
2023-06-20 11:50:48 +02:00
committed by GitHub
parent 4218c19fe2
commit 698eb8a6fd
5 changed files with 10 additions and 2 deletions

1
.gitignore vendored
View File

@@ -30,6 +30,7 @@ ENV/
.pytest_cache/
.ruff_cache/
.coverage
.mypy_cache/
# macOS specific files
.DS_Store

View File

@@ -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
View File

View 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

View File

@@ -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)