Skip to content

Commit 202908f

Browse files
committed
lint
1 parent 6e5ad80 commit 202908f

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

scripts/hooks.py

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -65,15 +65,13 @@ def generate_linked_table(model: str):
6565
examples_df = pd.read_csv(example_file, quoting=1).fillna("")
6666

6767
# First select only the columns we want from annotation_df
68-
df = annotation_df[
69-
[
70-
"Attribute",
71-
"Description",
72-
"Required",
73-
"Validation Rules",
74-
"Valid Values",
75-
]
76-
]
68+
df = annotation_df[[
69+
"Attribute",
70+
"Description",
71+
"Required",
72+
"Validation Rules",
73+
"Valid Values",
74+
]]
7775

7876
# Then add the Example column and rename it to Examples
7977
df = df.merge(
@@ -102,9 +100,8 @@ def generate_valid_values_markdown(model: str):
102100
"""Generate docs page for standard terms of the given data model."""
103101
dest_parent_dir = join("docs", "valid_values")
104102

105-
with open(join("modules", MAPPING_FILENAME)) as f, open(
106-
join(dest_parent_dir, f"{model}.md"), "w"
107-
) as md:
103+
with open(join("modules", MAPPING_FILENAME)) as f, \
104+
open(join(dest_parent_dir, f"{model}.md"), "w") as md:
108105
mapping = yaml.safe_load(f)
109106

110107
# Create a section in the docs page for each attribute that has a list

0 commit comments

Comments
 (0)