aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.github
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-06-18 16:38:25 +0200
committerEgor Tensin <egor@tensin.name>2026-06-18 16:38:25 +0200
commitb9043f0f204b6bd4526a283ad2217736fb96d8a1 (patch)
treefb2e0a96118327627319d915d8367b8d5a017aae /.github
parentplot_all.sh: try to get rid of matplotlib fix (diff)
downloadsorting-algorithms-b9043f0f204b6bd4526a283ad2217736fb96d8a1.tar.gz
sorting-algorithms-b9043f0f204b6bd4526a283ad2217736fb96d8a1.zip
workflows/ci: add Black formatting job
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yml17
1 files changed, 17 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index f93fd1d..018d321 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -5,6 +5,23 @@ on:
workflow_dispatch:
jobs:
+ lint:
+ runs-on: ubuntu-latest
+ name: Linting
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v6
+ - name: Set up Python
+ uses: actions/setup-python@v6
+ with:
+ python-version: '3.x'
+ - name: Run black
+ uses: psf/black@stable
+ with:
+ # > Please note that the --check flag is required so that the
+ # > workflow fails if Black finds files that need to be formatted.
+ options: --check --verbose --skip-string-normalization
+
test:
strategy:
matrix: