Compare commits

...

3 Commits

Author SHA1 Message Date
Bagatur
2f23cd9b2e fmt 2024-07-08 16:04:46 -07:00
Bagatur
58ca9692b1 Merge branch 'master' into bagatur/lint_all_core_deps 2024-07-01 11:47:09 -04:00
Bagatur
db2c5a5e25 infra: run lint on all core dependents 2024-06-21 15:26:05 -07:00

View File

@@ -40,11 +40,11 @@ def dependents_graph() -> dict:
return dependents
def add_dependents(dirs_to_eval: Set[str], dependents: dict) -> List[str]:
def add_dependents(dirs_to_eval: Set[str], dependents: dict, *, skip_core: bool = True) -> List[str]:
updated = set()
for dir_ in dirs_to_eval:
# handle core manually because it has so many dependents
if "core" in dir_:
if skip_core and "core" in dir_:
updated.add(dir_)
continue
pkg = "langchain-" + dir_.split("/")[-1]
@@ -130,6 +130,7 @@ if __name__ == "__main__":
"dirs-to-lint": add_dependents(
dirs_to_run["lint"] | dirs_to_run["test"] | dirs_to_run["extended-test"],
dependents,
skip_core=False,
),
"dirs-to-test": add_dependents(
dirs_to_run["test"] | dirs_to_run["extended-test"], dependents