We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f31b08 commit e4ca67cCopy full SHA for e4ca67c
codeflash/code_utils/config_parser.py
@@ -1,11 +1,13 @@
1
from __future__ import annotations
2
3
+from functools import cache
4
from pathlib import Path
5
from typing import Any
6
7
import tomlkit
8
9
10
+@cache
11
def find_pyproject_toml(config_file: Path | None = None) -> Path:
12
# Find the pyproject.toml file on the root of the project
13
@@ -31,6 +33,7 @@ def find_pyproject_toml(config_file: Path | None = None) -> Path:
31
33
raise ValueError(msg)
32
34
35
36
37
def find_conftest_files(test_paths: list[Path]) -> list[Path]:
38
list_of_conftest_files = set()
39
for test_path in test_paths:
0 commit comments