Skip to content

Commit

Permalink
Add mypy CI job
Browse files Browse the repository at this point in the history
  • Loading branch information
djcopley committed May 15, 2024
1 parent 99491a1 commit 745cb9d
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 3 deletions.
24 changes: 22 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,28 @@
name: Ruff
on: [ push, pull_request ]
name: Lint
on:
push:
pull_request:
permissions:
contents: read

jobs:
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: chartboost/ruff-action@v1
mypy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Install mypy
run: pip install mypy
- name: Install shelloracle dependencies
run: pip install -r requirements.txt
- name: Run mypy
run: mypy src/
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ classifiers = [
]

[project.optional-dependencies]
tests = [
dev = [
"build",
"mypy",
"tox",
"pytest",
"pytest-sugar",
Expand Down
48 changes: 48 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# This file was autogenerated by uv via the following command:
# uv pip compile pyproject.toml -o requirements.txt
annotated-types==0.6.0
# via pydantic
anyio==4.3.0
# via
# httpx
# openai
certifi==2024.2.2
# via
# httpcore
# httpx
distro==1.9.0
# via openai
h11==0.14.0
# via httpcore
httpcore==1.0.5
# via httpx
httpx==0.27.0
# via openai
idna==3.7
# via
# anyio
# httpx
openai==1.30.1
prompt-toolkit==3.0.43
pydantic==2.7.1
# via openai
pydantic-core==2.18.2
# via pydantic
sniffio==1.3.1
# via
# anyio
# httpx
# openai
termcolor==2.3.0
# via yaspin
tomlkit==0.12.5
tqdm==4.66.4
# via openai
typing-extensions==4.11.0
# via
# openai
# pydantic
# pydantic-core
wcwidth==0.2.13
# via prompt-toolkit
yaspin==3.0.2

0 comments on commit 745cb9d

Please sign in to comment.