summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorInada Naoki <songofacandy@gmail.com>2019-12-05 18:54:14 +0900
committerInada Naoki <songofacandy@gmail.com>2019-12-05 19:05:00 +0900
commitaf4eea430e2f176f17fff5abe781dd83f55d4657 (patch)
treeb8912ab7a4962a23ab67376c318bca3716ebdfcf
parentbc8c86203af8d36152c9c72ea22e895db2ed3fe0 (diff)
downloadmsgpack-python-af4eea430e2f176f17fff5abe781dd83f55d4657.tar.gz
travis: Add Black
-rw-r--r--.travis.yml9
-rw-r--r--Makefile4
2 files changed, 12 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml
index 7b298af..9d3ae74 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -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
diff --git a/Makefile b/Makefile
index 5828ed4..a1edc88 100644
--- a/Makefile
+++ b/Makefile
@@ -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