Skip to content

Commit 737c2ff

Browse files
committed
Fix to resolve github action issue with python
1 parent 47302ec commit 737c2ff

4 files changed

Lines changed: 9 additions & 487 deletions

File tree

python-kalign/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ class AlignedSequences(NamedTuple):
1717
names: List[str]
1818
sequences: List[str]
1919

20+
2021
from . import _core, io, utils
2122

2223
try:

python-kalign/cli.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,9 @@ def main(argv: Optional[list[str]] = None) -> int:
131131
input_path = args.input
132132
tmp_path: Optional[Path] = None
133133
if input_path == "-":
134-
with tempfile.NamedTemporaryFile(prefix="kalign-", suffix=".fa", delete=False) as tmp:
134+
with tempfile.NamedTemporaryFile(
135+
prefix="kalign-", suffix=".fa", delete=False
136+
) as tmp:
135137
tmp.write(sys.stdin.buffer.read())
136138
tmp_path = Path(tmp.name)
137139
input_path = str(tmp_path)
@@ -150,8 +152,10 @@ def main(argv: Optional[list[str]] = None) -> int:
150152
_write_stdout(result.names, result.sequences, args.format)
151153
else:
152154
kalign.write_alignment(
153-
result.sequences, args.output,
154-
format=args.format, ids=result.names,
155+
result.sequences,
156+
args.output,
157+
format=args.format,
158+
ids=result.names,
155159
)
156160

157161
return 0

0 commit comments

Comments
 (0)