- 
                Notifications
    
You must be signed in to change notification settings  - Fork 22
 
migrate to uv #57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
          
     Closed
      
      
    
  
     Closed
                    migrate to uv #57
Changes from all commits
      Commits
    
    
            Show all changes
          
          
            8 commits
          
        
        Select commit
          Hold shift + click to select a range
      
      9e8125c
              
                migrate to uv
              
              
                KRRT7 7a4aae9
              
                Merge branch 'main' into uv-migrate
              
              
                KRRT7 d2982cc
              
                bubble sort
              
              
                KRRT7 8d967df
              
                Merge branch 'uv-migrate' of https://github.com/codeflash-ai/codeflas…
              
              
                KRRT7 2497c4a
              
                all in on uv
              
              
                KRRT7 814c096
              
                all in on uv
              
              
                KRRT7 86450b3
              
                Merge branch 'uv-migrate' of https://github.com/codeflash-ai/codeflas…
              
              
                KRRT7 1214f98
              
                Merge branch 'main' of https://github.com/codeflash-ai/codeflash into…
              
              
                KRRT7 File filter
Filter by extension
Conversations
          Failed to load comments.   
        
        
          
      Loading
        
  Jump to
        
          Jump to file
        
      
      
          Failed to load files.   
        
        
          
      Loading
        
  Diff view
Diff view
There are no files selected for viewing
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| # These version placeholders will be replaced by poetry-dynamic-versioning during `poetry build`. | ||
| # These version placeholders will be replaced by hatch-vcs during build. | ||
| __version__ = "0.10.3" | ||
| __version_tuple__ = (0, 10, 3) | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -1,13 +1,10 @@ | ||
| [tool] | ||
| [tool.poetry] | ||
| [project] | ||
| name = "codeflash" | ||
| version = "0.0.0" # Determined by poetry-dynamic-versioning during `poetry build` | ||
| description = "Client for codeflash.ai - automatic code performance optimization, powered by AI" | ||
| license = "BSL-1.1" | ||
| authors = ["CodeFlash Inc. <[email protected]>"] | ||
| homepage = "https://codeflash.ai" | ||
| authors = [{ name = "CodeFlash Inc.", email = "[email protected]" }] | ||
| requires-python = ">=3.9" | ||
| readme = "README.md" | ||
| packages = [{ include = "codeflash", format = ["sdist"] }] | ||
| license = "BUSL-1.1 " | ||
| keywords = [ | ||
| "codeflash", | ||
| "performance", | ||
| 
        
          
        
         | 
    @@ -17,6 +14,64 @@ keywords = [ | |
| "machine learning", | ||
| "LLM", | ||
| ] | ||
| dependencies = [ | ||
| "unidiff>=0.7.4", | ||
| "pytest>=7.0.0,<8.3.4", | ||
| "gitpython>=3.1.31", | ||
| "libcst>=1.0.1", | ||
| "jedi>=0.19.1", | ||
| "tiktoken>=0.3.2", | ||
| "timeout-decorator>=0.5.0", | ||
| "pytest-timeout>=2.1.0", | ||
| "tomlkit>=0.11.7", | ||
| "unittest-xml-reporting>=3.2.0", | ||
| "junitparser>=3.1.0", | ||
| "pydantic>=1.10.1", | ||
| "humanize>=4.0.0", | ||
| "posthog>=3.0.0,<=3.11.0", | ||
| "click>=8.1.0", | ||
| "inquirer>=3.0.0", | ||
| "sentry-sdk>=1.40.6,<3.0.0", | ||
| "parameterized>=0.9.0", | ||
| "isort>=5.11.0", | ||
| "dill>=0.3.8", | ||
| "rich>=13.8.1", | ||
| "lxml>=5.3.0", | ||
| "crosshair-tool>=0.0.78", | ||
| "coverage>=7.6.4", | ||
| ] | ||
| urls = { "Homepage" = "https://codeflash.ai" } | ||
| scripts = { codeflash = "codeflash.main:main" } | ||
| 
     | 
||
| dynamic = ["version"] # Determined by uv-dynamic-versioning during `uv build` | ||
| 
     | 
||
| [dependency-groups] | ||
| dev = [ | ||
| "ipython>=8.12.0", | ||
| "mypy>=1.13", | ||
| "ruff>=0.7.0", | ||
| "lxml-stubs>=0.5.1", | ||
| "pandas-stubs>=2.2.2.240807, <2.2.3.241009", | ||
| "types-Pygments>=2.18.0.20240506", | ||
| "types-colorama>=0.4.15.20240311", | ||
| "types-decorator>=5.1.8.20240310", | ||
| "types-jsonschema>=4.23.0.20240813", | ||
| "types-requests>=2.32.0.20241016", | ||
| "types-six>=1.16.21.20241009", | ||
| "types-cffi>=1.16.0.20240331", | ||
| "types-openpyxl>=3.1.5.20241020", | ||
| "types-regex>=2024.9.11.20240912", | ||
| "types-python-dateutil>=2.9.0.20241003", | ||
| "pytest-cov>=6.0.0,<7", | ||
| "types-gevent>=24.11.0.20241230,<25", | ||
| "types-greenlet>=3.1.0.20241221,<4", | ||
| "types-pexpect>=4.9.0.20241208,<5", | ||
| "types-unidiff>=0.7.0.20240505,<0.8", | ||
| "uv>=0.6.2", | ||
| ] | ||
| 
     | 
||
| [tool.hatch.build] | ||
| include = ["codeflash"] | ||
| exclude = [ | ||
| "docs/*", | ||
| "experiments/*", | ||
| 
          
            
          
           | 
    @@ -65,69 +120,6 @@ exclude = [ | |
| "env", | ||
| ] | ||
| 
     | 
||
| # Versions here the minimum required versions for the project. These should be as loose as possible. | ||
| [tool.poetry.dependencies] | ||
| python = ">=3.9" | ||
| unidiff = ">=0.7.4" | ||
| pytest = ">=7.0.0,<8.3.4" | ||
| gitpython = ">=3.1.31" | ||
| libcst = ">=1.0.1" | ||
| jedi = ">=0.19.1" | ||
| tiktoken = ">=0.3.2" | ||
| timeout-decorator = ">=0.5.0" | ||
| pytest-timeout = ">=2.1.0" | ||
| tomlkit = ">=0.11.7" | ||
| unittest-xml-reporting = ">=3.2.0" | ||
| junitparser = ">=3.1.0" | ||
| pydantic = ">=1.10.1" | ||
| humanize = ">=4.0.0" | ||
| posthog = ">=3.0.0,<=3.11.0" | ||
| click = ">=8.1.0" | ||
| inquirer = ">=3.0.0" | ||
| sentry-sdk = ">=1.40.6,<3.0.0" | ||
| parameterized = ">=0.9.0" | ||
| isort = ">=5.11.0" | ||
| dill = ">=0.3.8" | ||
| rich = ">=13.8.1" | ||
| lxml = ">=5.3.0" | ||
| crosshair-tool = ">=0.0.78" | ||
| coverage = ">=7.6.4" | ||
| line_profiler=">=4.2.0" #this is the minimum version which supports python 3.13 | ||
| [tool.poetry.group.dev] | ||
| optional = true | ||
| 
     | 
||
| # Don't forget to install the poetry plugins we use too: | ||
| # poetry self add poetry-dynamic-versioning | ||
| 
     | 
||
| [tool.poetry.group.dev.dependencies] | ||
| ipython = ">=8.12.0" | ||
| mypy = ">=1.13" | ||
| ruff = ">=0.7.0" | ||
| lxml-stubs = ">=0.5.1" | ||
| pandas-stubs = ">=2.2.2.240807, <2.2.3.241009" | ||
| types-Pygments = ">=2.18.0.20240506" | ||
| types-colorama = ">=0.4.15.20240311" | ||
| types-decorator = ">=5.1.8.20240310" | ||
| types-jsonschema = ">=4.23.0.20240813" | ||
| types-requests = ">=2.32.0.20241016" | ||
| types-six = ">=1.16.21.20241009" | ||
| types-cffi = ">=1.16.0.20240331" | ||
| types-openpyxl = ">=3.1.5.20241020" | ||
| types-regex = ">=2024.9.11.20240912" | ||
| types-python-dateutil = ">=2.9.0.20241003" | ||
| pytest-cov = "^6.0.0" | ||
| types-gevent = "^24.11.0.20241230" | ||
| types-greenlet = "^3.1.0.20241221" | ||
| types-pexpect = "^4.9.0.20241208" | ||
| types-unidiff = "^0.7.0.20240505" | ||
| uv = ">=0.6.2" | ||
| 
     | 
||
| [tool.poetry.build] | ||
| script = "codeflash/update_license_version.py" | ||
| 
     | 
||
| [tool.poetry.scripts] | ||
| codeflash = "codeflash.main:main" | ||
| 
     | 
||
| [tool.mypy] | ||
| show_error_code_links = true | ||
| pretty = true | ||
| 
          
            
          
           | 
    @@ -199,22 +191,6 @@ split-on-trailing-comma = false | |
| docstring-code-format = true | ||
| skip-magic-trailing-comma = true | ||
| 
     | 
||
| [tool.poetry-dynamic-versioning] | ||
| enable = true | ||
| style = "pep440" | ||
| vcs = "git" | ||
| 
     | 
||
| [tool.poetry-dynamic-versioning.substitution] | ||
| files = ["codeflash/version.py"] | ||
| 
     | 
||
| [tool.poetry-dynamic-versioning.files."codeflash/version.py"] | ||
| persistent-substitution = true | ||
| initial-content = """ | ||
| # These version placeholders will be replaced by poetry-dynamic-versioning during `poetry build`. | ||
| __version__ = "0.0.0" | ||
| __version_tuple__ = (0, 0, 0) | ||
| """ | ||
| 
     | 
||
| 
     | 
||
| [tool.codeflash] | ||
| module-root = "codeflash" | ||
| 
        
          
        
         | 
    @@ -225,7 +201,14 @@ formatter-cmds = [ | |
| "uvx ruff format $file", | ||
| ] | ||
| 
     | 
||
| [tool.hatch.build.hooks.vcs] | ||
| version-file = "codeflash/version.py" | ||
| 
     | 
||
| [tool.hatch.version] | ||
| source = "vcs" | ||
| tag-pattern = "(?:^|^v|^release/)(?P<version>[0-9]+\\.[0-9]+\\.[0-9]+)$" | ||
| 
     | 
||
| 
     | 
||
| [build-system] | ||
| requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning>=1.2.0,<2.0.0"] | ||
| build-backend = "poetry_dynamic_versioning.backend" | ||
| requires = ["hatchling", "hatch-vcs"] | ||
| build-backend = "hatchling.build" | ||
      
      Oops, something went wrong.
        
    
  
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
Uh oh!
There was an error while loading. Please reload this page.