summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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