mirror of
https://github.com/Textualize/rich.git
synced 2025-08-04 01:58:24 +00:00
Add black format check
This will provide a useful ci check before users can merge.
This commit is contained in:
parent
1d591e388d
commit
9a0044e880
2 changed files with 5 additions and 0 deletions
3
.github/workflows/pythonpackage.yml
vendored
3
.github/workflows/pythonpackage.yml
vendored
|
@ -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
|
||||
|
|
2
Makefile
2
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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue