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/ .pytest_cache/
.ruff_cache/ .ruff_cache/
.coverage .coverage
.mypy_cache/
# macOS specific files # macOS specific files
.DS_Store .DS_Store

View File

@@ -25,3 +25,8 @@ repos:
id: detect-private-key id: detect-private-key
id: end-of-file-fixer id: end-of-file-fixer
id: trailing-whitespace 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

@@ -3,4 +3,5 @@ openai==0.27.8
pre-commit==3.3.3 pre-commit==3.3.3
ruff==0.0.272 ruff==0.0.272
typer==0.9.0 typer==0.9.0
pytest==7.3.1 pytest==7.3.1
mypy==1.3.0

View File

@@ -6,6 +6,7 @@ import subprocess
from itertools import islice from itertools import islice
from pathlib import Path from pathlib import Path
from typing import Iterable
from typer import run from typer import run
@@ -15,7 +16,7 @@ def main(
): ):
path = Path("benchmark") path = Path("benchmark")
folders = path.iterdir() folders: Iterable[Path] = path.iterdir()
if n_benchmarks: if n_benchmarks:
folders = islice(folders, n_benchmarks) folders = islice(folders, n_benchmarks)