diff --git a/.github/workflows/pre-commit.yaml b/.github/workflows/pre-commit.yaml index c2f7e71..ad71791 100644 --- a/.github/workflows/pre-commit.yaml +++ b/.github/workflows/pre-commit.yaml @@ -10,5 +10,5 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - uses: actions/setup-python@v3 + - uses: actions/setup-python@v4 - uses: pre-commit/action@v3.0.0 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 64dae75..f532737 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,14 +2,20 @@ # See https://pre-commit.com/hooks.html for more hooks fail_fast: true + repos: + +- repo: https://github.com/pre-commit/mirrors-mypy + rev: v1.3.0 + hooks: + - id: mypy + - repo: https://github.com/psf/black rev: 23.3.0 hooks: - id: black args: [--config, pyproject.toml] types: [python] - exclude: .+/migrations((/.+)|(\.py)) - repo: https://github.com/charliermarsh/ruff-pre-commit rev: "v0.0.272" @@ -26,7 +32,3 @@ repos: id: end-of-file-fixer id: trailing-whitespace -- repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.3.0 - hooks: - - id: mypy diff --git a/pyproject.toml b/pyproject.toml index fd505f4..37c4687 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,10 +9,13 @@ readme = "README.md" requires-python = ">=3" dependencies = [ 'black == 23.3.0', + 'mypy == 1.3.0', 'openai == 0.27.8', - 'ruff == 0.0.272', '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] diff --git a/requirements.txt b/requirements.txt index 1b829e1..ffc5c53 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,9 @@ black==23.3.0 +mypy==1.3.0 openai==0.27.8 pre-commit==3.3.3 -ruff==0.0.272 -typer==0.9.0 pytest==7.3.1 -mypy==1.3.0 \ No newline at end of file +ruff==0.0.272 +termcolor==2.3.0 +typer==0.9.0 +