Skip to content

Commit

Permalink
DEV: Add GitHub Actions workflow for Black (#18)
Browse files Browse the repository at this point in the history
-Added GitHub Actions workflow for Black (added file .github/workflows/black.yml)
  • Loading branch information
VinzentRisch authored Jan 4, 2024
1 parent 1729fb5 commit 94069c6
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/black.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Lint

on: [push, pull_request]

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: psf/black@stable
with:
version: "23.12.1"
args: ". --check --extend-exclude '.*_version\.py$'"
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ repos:
- black
files: ^(.+)(?<!\_version)\.py$
- repo: https://github.com/psf/black
rev: 22.3.0
rev: 23.12.1
hooks:
- id: black
args:
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 @@ -84,7 +84,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 @@ -275,7 +274,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 94069c6

Please sign in to comment.