From 9a0044e8808ab690bdc4c7dd08e246a5545b1aed Mon Sep 17 00:00:00 2001 From: Nathan Page Date: Sun, 2 Aug 2020 15:51:15 -0400 Subject: [PATCH 1/2] Add black format check This will provide a useful ci check before users can merge. --- .github/workflows/pythonpackage.yml | 3 +++ Makefile | 2 ++ 2 files changed, 5 insertions(+) diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/pythonpackage.yml index 9b6305e6..824b748c 100644 --- a/.github/workflows/pythonpackage.yml +++ b/.github/workflows/pythonpackage.yml @@ -21,6 +21,9 @@ jobs: python -m pip install --upgrade pip pip install -r requirements-dev.txt poetry install + - name: Format check with black + run: | + make format - name: Typecheck with mypy run: | make typecheck diff --git a/Makefile b/Makefile index 9df9641c..792d7ffb 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,7 @@ test: pytest --cov-report term-missing --cov=rich tests/ -vv +format: + black --check rich typecheck: mypy -p rich --ignore-missing-imports --warn-unreachable typecheck-report: From 30ae0675b9415c572fd505e26255119c2431594e Mon Sep 17 00:00:00 2001 From: Nathan Page Date: Sun, 2 Aug 2020 15:53:50 -0400 Subject: [PATCH 2/2] Run black format across all files --- rich/_palettes.py | 1 - 1 file changed, 1 deletion(-) diff --git a/rich/_palettes.py b/rich/_palettes.py index d562d821..082d8817 100644 --- a/rich/_palettes.py +++ b/rich/_palettes.py @@ -299,4 +299,3 @@ EIGHT_BIT_PALETTE = Palette( (238, 238, 238), ] ) -