Add Black check to CI.

This commit is contained in:
guy 2020-01-28 16:16:48 +01:00
parent f53dd9b89d
commit 6cd6364857
1 changed files with 16 additions and 0 deletions

View File

@ -1,7 +1,23 @@
# Config file for automatic testing at travis-ci.org
stages:
- format
- test
language: python
jobs:
include:
- stage: format
name: "Black format check"
python: "3.7"
install: pip install black
script:
- black --version
- black . --check --exclude '\.venv/|venv/|\.local/|\.cache/|cache/|\.git/|migrations/'
allow_failures:
- stage: format
python:
- "3.6"
- "3.7"