Skip to content

Commit

Permalink
Expand Python compatibility to ^3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
Pwuts committed Jun 27, 2024
1 parent a77e1f0 commit 8cc82a5
Show file tree
Hide file tree
Showing 4 changed files with 74 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ repos:
rev: 5.12.0
hooks:
- id: isort
language_version: python3.11
language_version: python3.10

- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
Expand Down
4 changes: 3 additions & 1 deletion codex/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ async def create_benchmark_user(prisma_client: Prisma, base_url: str):
await prisma_client.connect()
try:
codex_client = CodexClient(client=prisma_client, base_url=base_url)
timestamp = datetime.datetime.now(datetime.UTC).strftime("%Y-%m-%d %H:%M:%S")
timestamp = datetime.datetime.now(datetime.timezone.utc).strftime(
"%Y-%m-%d %H:%M:%S"
)
user = await codex_client.create_or_get_codex_user(
f"BM {timestamp}", f"BM {timestamp}"
)
Expand Down
72 changes: 69 additions & 3 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ authors = ["SwiftyOS <[email protected]>"]
readme = "README.md"

[tool.poetry.dependencies]
python = ">=3.11,<3.13"
python = "^3.10"
openai = "^1.6.0"
pgvector = "^0.2.4"
matplotlib = "^3.8.2"
Expand Down

0 comments on commit 8cc82a5

Please sign in to comment.