Skip to content

Commit 09d33b4

Browse files
committed
Update remove_field.py
1 parent f5cec72 commit 09d33b4

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/obofoundry/remove_field.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"""A workflow for removing a field from all ontology markdown files' metadata."""
2+
13
from io import StringIO
24
from pathlib import Path
35

@@ -9,6 +11,7 @@
911

1012

1113
def remove_field(name: str) -> None:
14+
"""Remove the metadata key from all ontologies' metadata."""
1215
for path in ONTOLOGY_DIRECTORY.glob("*.md"):
1316
remove_field_from_file(path, name)
1417

@@ -39,7 +42,8 @@ def remove_field_from_file(path: Path, name: str) -> None:
3942

4043
@click.command()
4144
@click.argument("name")
42-
def main(name) -> None:
45+
def main(name: str) -> None:
46+
"""Remove the metadata key from all ontologies' metadata."""
4347
remove_field(name)
4448

4549

0 commit comments

Comments
 (0)