travis: Add Black

This commit is contained in:
Inada Naoki 2019-12-05 18:54:14 +09:00
parent bc8c86203a
commit af4eea430e
2 changed files with 12 additions and 1 deletions

View file

@ -14,8 +14,15 @@ python:
matrix:
include:
- name: Black
language: python
python: 3.8
install:
- pip install black
script:
- black --check --diff .
- name: 32bit build
sudo: required
language: python
services:
- docker

View file

@ -2,6 +2,10 @@
all: cython
python setup.py build_ext -i -f
.PHONY: black
black:
black .
.PHONY: cython
cython:
cython --cplus msgpack/_cmsgpack.pyx