Skip to content

Commit c38c879

Browse files
committed
Fix lines exceeding max line length
Split long lines into multiple lines using parenthesized multi-line strings. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 5a6f719 commit c38c879

File tree

1 file changed

+24
-6
lines changed

1 file changed

+24
-6
lines changed

tests/test_implementations/test_ols.py

+24-6
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,18 @@
1414
"GO:0005634": {
1515
"iri": "http://purl.obolibrary.org/obo/GO_0005634",
1616
"label": "nucleus",
17-
"description": "A membrane-bounded organelle of eukaryotic cells in which chromosomes are housed and replicated.",
17+
"description": (
18+
"A membrane-bounded organelle of eukaryotic cells in which "
19+
"chromosomes are housed and replicated."
20+
),
1821
},
1922
"GO:0005635": {
2023
"iri": "http://purl.obolibrary.org/obo/GO_0005635",
2124
"label": "nuclear envelope",
22-
"description": "The double lipid bilayer enclosing the nucleus and separating its contents from the rest of the cytoplasm.",
25+
"description": (
26+
"The double lipid bilayer enclosing the nucleus and separating "
27+
"its contents from the rest of the cytoplasm."
28+
),
2329
},
2430
}
2531

@@ -90,12 +96,18 @@ def test_definitions(self, mock_definitions):
9096
mock_definitions.return_value = [
9197
(
9298
"GO:0005634",
93-
"A membrane-bounded organelle of eukaryotic cells in which chromosomes are housed and replicated.",
99+
(
100+
"A membrane-bounded organelle of eukaryotic cells in which "
101+
"chromosomes are housed and replicated."
102+
),
94103
{},
95104
),
96105
(
97106
"GO:0005635",
98-
"The double lipid bilayer enclosing the nucleus and separating its contents from the rest of the cytoplasm.",
107+
(
108+
"The double lipid bilayer enclosing the nucleus and separating "
109+
"its contents from the rest of the cytoplasm."
110+
),
99111
{},
100112
),
101113
]
@@ -110,15 +122,21 @@ def test_definitions(self, mock_definitions):
110122
self.assertEqual(definitions[0][0], "GO:0005634")
111123
self.assertEqual(
112124
definitions[0][1],
113-
"A membrane-bounded organelle of eukaryotic cells in which chromosomes are housed and replicated.",
125+
(
126+
"A membrane-bounded organelle of eukaryotic cells in which "
127+
"chromosomes are housed and replicated."
128+
),
114129
)
115130
self.assertEqual(definitions[0][2], {}) # Empty metadata dict
116131

117132
# Check second definition
118133
self.assertEqual(definitions[1][0], "GO:0005635")
119134
self.assertEqual(
120135
definitions[1][1],
121-
"The double lipid bilayer enclosing the nucleus and separating its contents from the rest of the cytoplasm.",
136+
(
137+
"The double lipid bilayer enclosing the nucleus and separating "
138+
"its contents from the rest of the cytoplasm."
139+
),
122140
)
123141
self.assertEqual(definitions[1][2], {}) # Empty metadata dict
124142

0 commit comments

Comments
 (0)