Skip to content

Commit 00d3ee2

Browse files
[WIP] update health / typing completeness reports to check for pyproject.toml (#41797)
* Initial plan * Update health and typing reports to check for pyproject.toml Co-authored-by: kristapratico <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: kristapratico <[email protected]>
1 parent bb37432 commit 00d3ee2

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

scripts/repo_health_status_report/output_health_report.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,9 @@ def get_github_total_issue_link(label: str) -> str:
234234

235235
def is_package_inactive(package_path: str) -> bool:
236236
setup_py = os.path.join(package_path, "setup.py")
237-
return not os.path.exists(setup_py) or INACTIVE_CLASSIFIER in ParsedSetup.from_path(package_path).classifiers
237+
pyproject_toml = os.path.join(package_path, "pyproject.toml")
238+
has_project_file = os.path.exists(setup_py) or os.path.exists(pyproject_toml)
239+
return not has_project_file or INACTIVE_CLASSIFIER in ParsedSetup.from_path(package_path).classifiers
238240

239241

240242
def skip_package(package_name: str) -> bool:

scripts/repo_type_completeness/generate_main_typescores.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ def get_packages_to_score() -> dict[str, dict[str, Any]]:
205205
for pkg_path in package_paths:
206206
package_path = pathlib.Path(pkg_path)
207207
package_name = package_path.name
208-
if skip_package(package_name) or not (package_path / "setup.py").exists():
208+
if skip_package(package_name) or not ((package_path / "setup.py").exists() or (package_path / "pyproject.toml").exists()):
209209
continue
210210
package_path = str(package_path)
211211
package_info = ParsedSetup.from_path(package_path)

0 commit comments

Comments
 (0)