Skip to content

Commit

Permalink
Moving to uv dependency groups (#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesbraza authored Nov 4, 2024
1 parent e3a7450 commit 59ff22a
Show file tree
Hide file tree
Showing 4 changed files with 115 additions and 51 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/codeflash.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@ jobs:
with:
enable-cache: true
- if: steps.bot_check.outputs.skip_remaining_steps == 'no'
run: uv sync
run: uv sync --group=codeflash
- if: steps.bot_check.outputs.skip_remaining_steps == 'no'
run: uv run codeflash
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ repos:
additional_dependencies:
- "validate-pyproject-schema-store[all]>=2024.08.19" # For Ruff renaming RUF025 to C420
- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.4.26
rev: 0.4.29
hooks:
- id: uv-lock
- repo: https://github.com/pre-commit/mirrors-mypy
Expand Down
54 changes: 29 additions & 25 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
build-backend = "setuptools.build_meta"
requires = ["setuptools>=64", "setuptools_scm>=8"]

[dependency-groups]
codeflash = [
"codeflash>=0.7", # Pin to keep recent
"ldp[dev]",
]
dev = ["ldp[dev]"]

[project]
authors = [
{email = "[email protected]", name = "FutureHouse technical staff"},
Expand Down Expand Up @@ -38,6 +45,28 @@ readme = "README.md"
requires-python = ">=3.11"

[project.optional-dependencies]
dev = [
"fhaviary[xml]",
"ipython>=8", # Pin to keep recent
"ldp[monitor,nn,rich,server,typing,visualization]",
"litellm!=1.49.4,!=1.49.5,!=1.49.6", # For https://github.com/BerriAI/litellm/issues/6216
"mypy>=1.8", # Pin for mutable-override
"openai<1.47", # Pin for https://github.com/BerriAI/litellm/issues/5854
"pre-commit>=3.4", # Pin to keep recent
"pydantic~=2.9", # Pydantic 2.9 changed JSON schema exports 'allOf', so ensure tests match
"pylint-pydantic",
"pylint>=3.2", # Pin to keep recent
"pytest-asyncio",
"pytest-mock",
"pytest-recording",
"pytest-rerunfailures",
"pytest-subtests",
"pytest-sugar",
"pytest-timer[colorama]",
"pytest-xdist",
"pytest>=8", # Pin to keep recent
"refurb>=2", # Pin to keep recent
]
monitor = [
"wandb",
]
Expand Down Expand Up @@ -414,28 +443,3 @@ in_place = true
spaces_before_inline_comment = 2 # Match Python PEP 8
spaces_indent_inline_array = 4 # Match Python PEP 8
trailing_comma_inline_array = true

[tool.uv]
dev-dependencies = [
"codeflash",
"fhaviary[xml]",
"ipython>=8", # Pin to keep recent
"ldp[monitor,nn,rich,server,typing,visualization]",
"litellm!=1.49.4,!=1.49.5,!=1.49.6", # For https://github.com/BerriAI/litellm/issues/6216
"mypy>=1.8", # Pin for mutable-override
"openai<1.47", # Pin for https://github.com/BerriAI/litellm/issues/5854
"pre-commit>=3.4", # Pin to keep recent
"pydantic~=2.9", # Pydantic 2.9 changed JSON schema exports 'allOf', so ensure tests match
"pylint-pydantic",
"pylint>=3.2", # Pin to keep recent
"pytest-asyncio",
"pytest-mock",
"pytest-recording",
"pytest-rerunfailures",
"pytest-subtests",
"pytest-sugar",
"pytest-timer[colorama]",
"pytest-xdist",
"pytest>=8", # Pin to keep recent
"refurb>=2", # Pin to keep recent
]
108 changes: 84 additions & 24 deletions uv.lock

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

0 comments on commit 59ff22a

Please sign in to comment.