Skip to content

Commit b35a8dd

Browse files
committed
Add docstrings
1 parent 6eea6ea commit b35a8dd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pep517/build.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414

1515

1616
def validate_system(system):
17+
"""
18+
Ensure build system has the requisite fields.
19+
"""
1720
required = {'requires', 'backend'}
1821
if required > set(system):
1922
missing = required - set(system)
@@ -22,6 +25,9 @@ def validate_system(system):
2225

2326

2427
def load_system(source_dir):
28+
"""
29+
Load the build system from a source dir (pyproject.toml).
30+
"""
2531
pyproject = os.path.join(source_dir, 'pyproject.toml')
2632
with open(pyproject) as f:
2733
pyproject_data = pytoml.load(f)

0 commit comments

Comments
 (0)