Add black format check

This will provide a useful ci check before users can merge.
This commit is contained in:
Nathan Page 2020-08-02 15:51:15 -04:00
parent 1d591e388d
commit 9a0044e880
2 changed files with 5 additions and 0 deletions

View File

@ -21,6 +21,9 @@ jobs:
python -m pip install --upgrade pip python -m pip install --upgrade pip
pip install -r requirements-dev.txt pip install -r requirements-dev.txt
poetry install poetry install
- name: Format check with black
run: |
make format
- name: Typecheck with mypy - name: Typecheck with mypy
run: | run: |
make typecheck make typecheck

View File

@ -1,5 +1,7 @@
test: test:
pytest --cov-report term-missing --cov=rich tests/ -vv pytest --cov-report term-missing --cov=rich tests/ -vv
format:
black --check rich
typecheck: typecheck:
mypy -p rich --ignore-missing-imports --warn-unreachable mypy -p rich --ignore-missing-imports --warn-unreachable
typecheck-report: typecheck-report: