Skip to main content

check formatting with black

ID
b2258c2
date
2021-10-25 07:06:20+00:00
author
Alex Chan <alex@alexwlchan.net>
parent
515ba02
message
check formatting with black
changed files
3 files, 23 additions, 1 deletion

Changed files

.github/workflows/main.yml (504) → .github/workflows/main.yml (603)

diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index c0e4f2d..7f592b2 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -18,6 +18,11 @@ jobs:
         run: |
           pip3 install --user -r requirements_test.txt
 
+      - name: Check formatting
+        run: |
+          black *.py
+          git diff --exit-code
+
       - name: Run test suite
         run: |
           coverage run -m pytest test_concurrently.py

requirements_test.in (11) → requirements_test.in (17)

diff --git a/requirements_test.in b/requirements_test.in
index c75c448..3a4c1fb 100644
--- a/requirements_test.in
+++ b/requirements_test.in
@@ -1 +1,2 @@
+black
 pytest-cov

requirements_test.txt (492) → requirements_test.txt (776)

diff --git a/requirements_test.txt b/requirements_test.txt
index 6ca4000..494f358 100644
--- a/requirements_test.txt
+++ b/requirements_test.txt
@@ -6,12 +6,22 @@
 #
 attrs==21.2.0
     # via pytest
+black==21.9b0
+    # via -r requirements_test.in
+click==8.0.3
+    # via black
 coverage[toml]==6.0.2
     # via pytest-cov
 iniconfig==1.1.1
     # via pytest
+mypy-extensions==0.4.3
+    # via black
 packaging==21.0
     # via pytest
+pathspec==0.9.0
+    # via black
+platformdirs==2.4.0
+    # via black
 pluggy==1.0.0
     # via pytest
 py==1.10.0
@@ -22,7 +32,13 @@ pytest-cov==3.0.0
     # via -r requirements_test.in
 pytest==6.2.5
     # via pytest-cov
+regex==2021.10.23
+    # via black
 toml==0.10.2
     # via pytest
 tomli==1.2.1
-    # via coverage
+    # via
+    #   black
+    #   coverage
+typing-extensions==3.10.0.2
+    # via black