mirror of
https://github.com/aljazceru/gpt-engineer.git
synced 2025-12-17 04:35:17 +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/
|
.pytest_cache/
|
||||||
.ruff_cache/
|
.ruff_cache/
|
||||||
.coverage
|
.coverage
|
||||||
|
.mypy_cache/
|
||||||
|
|
||||||
# macOS specific files
|
# macOS specific files
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
|||||||
@@ -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
0
gpt_engineer/__init__.py
Normal 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
|
||||||
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user