Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
misialq committed Apr 3, 2024
1 parent 2f07b8c commit 0def232
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion q2_types/feature_data_mag/_transformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,6 @@ def _7(data: OrthologAnnotationDirFmt) -> pd.DataFrame:


@plugin.register_transformer
def _7(data: OrthologAnnotationDirFmt) -> qiime2.Metadata:
def _8(data: OrthologAnnotationDirFmt) -> qiime2.Metadata:
annotations = _annotations_to_dataframe(data)
return qiime2.Metadata(annotations)
6 changes: 4 additions & 2 deletions q2_types/feature_data_mag/tests/test_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,10 @@ def test_ortholog_annotations_annot_dict(self):

obs = annotations.annotation_dict()
exp = {
'test_output1': str(annotations.path / 'test_output1.emapper.annotations'),
'test_output2': str(annotations.path / 'test_output2.emapper.annotations')
'test_output1':
str(annotations.path / 'test_output1.emapper.annotations'),
'test_output2':
str(annotations.path / 'test_output2.emapper.annotations')
}
self.assertDictEqual(obs, exp)

Expand Down
4 changes: 3 additions & 1 deletion q2_types/feature_data_mag/tests/test_transformers.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@
from q2_types.feature_data_mag import (
MAGSequencesDirFmt, MAGIterator, OrthologAnnotationDirFmt
)
from q2_types.feature_data_mag._transformer import _get_filename, _annotations_to_dataframe
from q2_types.feature_data_mag._transformer import (
_get_filename, _annotations_to_dataframe
)


class TestTransformers(TestPluginBase):
Expand Down

0 comments on commit 0def232

Please sign in to comment.