Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 13 additions & 6 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,35 @@
name: Lint
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read

jobs:
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: actions/checkout@v7
- uses: actions/setup-python@v7
with:
python-version: "3.x"
- uses: pypa/hatch@install
- name: Run ruff linter and formatter
run: hatch fmt --check
- name: Run ruff linter
run: hatch check code
- name: Run ruff formatter
run: hatch check fmt
mypy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7
with:
fetch-depth: 0
- uses: actions/setup-python@v5
- uses: actions/setup-python@v7
with:
python-version: "3.x"
- uses: pypa/hatch@install
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ jobs:
release-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: actions/checkout@v7
- uses: actions/setup-python@v7
with:
python-version: "3.x"
- name: Build release distributions
run: |
pip install build
python -m build
- name: upload windows dists
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: release-dists
path: dist/
Expand All @@ -31,7 +31,7 @@ jobs:
id-token: write
steps:
- name: Retrieve release distributions
uses: actions/download-artifact@v4
uses: actions/download-artifact@v8
with:
name: release-dists
path: dist/
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
name: Tests
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
concurrency:
group: test-${{ github.ref }}
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
Expand All @@ -16,18 +18,18 @@ jobs:
fail-fast: false
matrix:
py:
- "3.14"
- "3.13"
- "3.12"
- "3.11"
- "3.10"
- "3.9"
steps:
- uses: pypa/hatch@install
- uses: actions/checkout@v3
- uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Setup python for test ${{ matrix.py }}
uses: actions/setup-python@v4
uses: actions/setup-python@v7
with:
python-version: ${{ matrix.py }}
- name: Run test suite
Expand Down
53 changes: 26 additions & 27 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,44 +12,43 @@ dynamic = ["version"]
authors = [
{ name = "Daniel Copley", email = "djcopley@proton.me" },
]
requires-python = ">=3.9"
requires-python = ">=3.10"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Operating System :: MacOS",
"Operating System :: POSIX :: Linux",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
]
dependencies = [
"tomli ~= 2.1; python_version < '3.11'",
"click~=8.1",
"dspy~=2.6",
"tomli ~= 2.4; python_version < '3.11'",
"click~=8.5",
"httpx~=0.28",
"openai~=1.66",
"openai~=3.13",
"prompt-toolkit~=3.0",
"yaspin~=3.1",
"tomlkit~=0.13",
"google-genai>=0.3.0",
"pygments~=2.19",
"rich>=13.9.4",
"yaspin~=3.5",
"tomlkit~=0.15",
"google-genai>=2.23",
"pygments~=2.21",
"rich>=15.0",
]

[dependency-groups]
test = [
"pytest~=8.3",
"pytest-cov~=5.0",
"pytest-sugar~=1.0",
"pytest-xdist~=3.6",
"pytest-asyncio~=0.24",
"pytest-httpx~=0.30",
"tomli-w~=1.2.0",
"pytest~=9.1",
"pytest-cov~=7.1",
"pytest-sugar~=1.1",
"pytest-xdist~=3.8",
"pytest-asyncio~=1.4",
"pytest-httpx~=0.36",
"tomli-w~=1.2",
]

[project.scripts]
Expand All @@ -65,22 +64,22 @@ source = "vcs"

[tool.hatch.envs.hatch-test]
dependencies = [
"pytest~=8.3",
"pytest-cov~=5.0",
"pytest-sugar~=1.0",
"pytest-xdist~=3.6",
"pytest-asyncio~=0.24",
"pytest-httpx~=0.30",
"tomli-w>=1.2.0",
"pytest~=9.1",
"pytest-cov~=7.1",
"pytest-sugar~=1.1",
"pytest-xdist~=3.8",
"pytest-asyncio~=1.4",
"pytest-httpx~=0.36",
"tomli-w~=1.2",
]

[[tool.hatch.envs.hatch-test.matrix]]
python = ["3.9", "3.10", "3.11", "3.12", "3.13"]
python = ["3.10", "3.11", "3.12", "3.13", "3.14"]

[tool.hatch.envs.types]
template = "hatch-test"
extra-dependencies = [
"mypy~=1.0",
"mypy~=2.3",
"types-Pygments",
]

Expand Down
Loading