Skip to content

Commit

Permalink
reformatted black and changed github action to exclude version.py
Browse files Browse the repository at this point in the history
  • Loading branch information
VinzentRisch committed Jan 4, 2024
1 parent 76a4a92 commit b611690
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/black.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 0 additions & 1 deletion q2_amr/tests/card/test_mags.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 0 additions & 2 deletions q2_amr/tests/card/test_reads.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit b611690

Please sign in to comment.