Add Black check to CI.
This commit is contained in:
parent
f53dd9b89d
commit
6cd6364857
16
.travis.yml
16
.travis.yml
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue