mirror of https://github.com/Textualize/rich.git
Merge pull request #201 from nathanrpage97/feat/format-check-ci
Add black format check to ci
This commit is contained in:
commit
1501671a4d
|
@ -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
|
||||||
|
|
2
Makefile
2
Makefile
|
@ -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:
|
||||||
|
|
|
@ -299,4 +299,3 @@ EIGHT_BIT_PALETTE = Palette(
|
||||||
(238, 238, 238),
|
(238, 238, 238),
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue