Skip to content

Commit 47fad79

Browse files
adding docstring
1 parent c79b1e3 commit 47fad79

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/poetry/core/factory.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -591,6 +591,9 @@ def validate(
591591
def validate_project_in_src(
592592
cls, toml_data: dict[str, Any], base_path: Path | None
593593
) -> dict[str, list[str]]:
594+
"""
595+
Checks the validity of projects located under src/ subdirectory.
596+
"""
594597
result: dict[str, list[str]] = {"errors": [], "warnings": []}
595598

596599
project_name = toml_data.get("project", {}).get("name") or toml_data.get(
@@ -602,7 +605,6 @@ def validate_project_in_src(
602605

603606
project_name = module_name(project_name)
604607

605-
# Check for empty directory with same name as project
606608
project_dir = base_path / project_name
607609
src_project_dir = base_path / "src" / project_name
608610

0 commit comments

Comments
 (0)