mirror of
https://github.com/aljazceru/gpt-engineer.git
synced 2025-12-18 13:15:00 +01:00
Add pytest pre commit hook (#210)
This commit is contained in:
2
.github/workflows/pre-commit.yaml
vendored
2
.github/workflows/pre-commit.yaml
vendored
@@ -10,5 +10,5 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: actions/setup-python@v3
|
- uses: actions/setup-python@v4
|
||||||
- uses: pre-commit/action@v3.0.0
|
- uses: pre-commit/action@v3.0.0
|
||||||
|
|||||||
@@ -2,14 +2,20 @@
|
|||||||
# See https://pre-commit.com/hooks.html for more hooks
|
# See https://pre-commit.com/hooks.html for more hooks
|
||||||
fail_fast: true
|
fail_fast: true
|
||||||
|
|
||||||
|
|
||||||
repos:
|
repos:
|
||||||
|
|
||||||
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
||||||
|
rev: v1.3.0
|
||||||
|
hooks:
|
||||||
|
- id: mypy
|
||||||
|
|
||||||
- repo: https://github.com/psf/black
|
- repo: https://github.com/psf/black
|
||||||
rev: 23.3.0
|
rev: 23.3.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: black
|
- id: black
|
||||||
args: [--config, pyproject.toml]
|
args: [--config, pyproject.toml]
|
||||||
types: [python]
|
types: [python]
|
||||||
exclude: .+/migrations((/.+)|(\.py))
|
|
||||||
|
|
||||||
- repo: https://github.com/charliermarsh/ruff-pre-commit
|
- repo: https://github.com/charliermarsh/ruff-pre-commit
|
||||||
rev: "v0.0.272"
|
rev: "v0.0.272"
|
||||||
@@ -26,7 +32,3 @@ repos:
|
|||||||
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
|
|
||||||
|
|||||||
@@ -9,10 +9,13 @@ readme = "README.md"
|
|||||||
requires-python = ">=3"
|
requires-python = ">=3"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
'black == 23.3.0',
|
'black == 23.3.0',
|
||||||
|
'mypy == 1.3.0',
|
||||||
'openai == 0.27.8',
|
'openai == 0.27.8',
|
||||||
'ruff == 0.0.272',
|
|
||||||
'pre-commit == 3.3.3',
|
'pre-commit == 3.3.3',
|
||||||
'typer == 0.9.0'
|
'pytest == 7.3.1',
|
||||||
|
'ruff == 0.0.272',
|
||||||
|
'termcolor==2.3.0',
|
||||||
|
'typer == 0.9.0',
|
||||||
]
|
]
|
||||||
|
|
||||||
[project.scripts]
|
[project.scripts]
|
||||||
|
|||||||
@@ -1,7 +1,9 @@
|
|||||||
black==23.3.0
|
black==23.3.0
|
||||||
|
mypy==1.3.0
|
||||||
openai==0.27.8
|
openai==0.27.8
|
||||||
pre-commit==3.3.3
|
pre-commit==3.3.3
|
||||||
ruff==0.0.272
|
|
||||||
typer==0.9.0
|
|
||||||
pytest==7.3.1
|
pytest==7.3.1
|
||||||
mypy==1.3.0
|
ruff==0.0.272
|
||||||
|
termcolor==2.3.0
|
||||||
|
typer==0.9.0
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user