Skip to content
Merged
Changes from 2 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
3 changes: 3 additions & 0 deletions codeflash/code_utils/config_parser.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
from __future__ import annotations

from functools import cache
from pathlib import Path
from typing import Any

import tomlkit


@cache
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mohammedahmed18 could caching this be a problem wrt the vs code extension, when we are doing the codeflash init flow?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in codeflash/lsp/beta.py there's _find_pyproject_toml that parses for pyproject.toml differently, should be fine

def find_pyproject_toml(config_file: Path | None = None) -> Path:
# Find the pyproject.toml file on the root of the project

Expand All @@ -31,6 +33,7 @@ def find_pyproject_toml(config_file: Path | None = None) -> Path:
raise ValueError(msg)


@cache
def find_conftest_files(test_paths: list[Path]) -> list[Path]:
list_of_conftest_files = set()
for test_path in test_paths:
Expand Down
Loading