From 94069c6e5247538f9a6eb168b956458352b23498 Mon Sep 17 00:00:00 2001 From: VinzentRisch <100149044+VinzentRisch@users.noreply.github.com> Date: Thu, 4 Jan 2024 13:47:07 +0100 Subject: [PATCH] DEV: Add GitHub Actions workflow for Black (#18) -Added GitHub Actions workflow for Black (added file .github/workflows/black.yml) --- .github/workflows/black.yaml | 13 +++++++++++++ .pre-commit-config.yaml | 2 +- q2_amr/tests/card/test_reads.py | 2 -- 3 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/black.yaml diff --git a/.github/workflows/black.yaml b/.github/workflows/black.yaml new file mode 100644 index 0000000..637820a --- /dev/null +++ b/.github/workflows/black.yaml @@ -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$'" diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3bffb8d..92eb28f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -14,7 +14,7 @@ repos: - black files: ^(.+)(?