From b61169046d157403a44bbad9b2437b988ce68a12 Mon Sep 17 00:00:00 2001 From: VinzentRisch Date: Thu, 4 Jan 2024 10:52:59 +0100 Subject: [PATCH] reformatted black and changed github action to exclude version.py --- .github/workflows/black.yaml | 4 ++++ q2_amr/tests/card/test_mags.py | 1 - q2_amr/tests/card/test_reads.py | 2 -- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/black.yaml b/.github/workflows/black.yaml index 823ab08..713f590 100644 --- a/.github/workflows/black.yaml +++ b/.github/workflows/black.yaml @@ -10,3 +10,7 @@ jobs: - uses: psf/black@stable with: version: "23.12.1" + - name: Lint with pre-commit pattern + run: | + find . -name "*.py" | grep -E '^((?!_version).)*\.py$' | xargs black --check + shell: bash diff --git a/q2_amr/tests/card/test_mags.py b/q2_amr/tests/card/test_mags.py index 9096137..39bb75e 100644 --- a/q2_amr/tests/card/test_mags.py +++ b/q2_amr/tests/card/test_mags.py @@ -50,7 +50,6 @@ def return_count_table(self, df_list): return count_table def test_annotate_mags_card(self): - manifest = self.get_data_path("MANIFEST_mags") mag = MultiMAGSequencesDirFmt() card_db = CARDDatabaseFormat() diff --git a/q2_amr/tests/card/test_reads.py b/q2_amr/tests/card/test_reads.py index 2b3a107..bcd6798 100644 --- a/q2_amr/tests/card/test_reads.py +++ b/q2_amr/tests/card/test_reads.py @@ -88,7 +88,6 @@ def annotate_reads_card_test_body(self, read_type): ), patch("q2_amr.card.reads.read_in_txt", mock_read_in_txt), patch( "q2_amr.card.reads.create_count_table", mock_create_count_table ): - # Run annotate_reads_card function result = annotate_reads_card(reads, card_db) @@ -281,7 +280,6 @@ def test_visualize_annotation_stats(self): "q2_amr.card.reads.plot_sample_stats", side_effect=self.mock_plot_sample_stats, ), tempfile.TemporaryDirectory() as tmp: - # Run visualize_annotation_stats function visualize_annotation_stats(tmp, amr_reads_annotation)