ci: minor cleanup (#161)

* ci: Travis: remove unnecessary option with black

Already in config, adding a final newline there.

* .travis.yml: minor cleanup
This commit is contained in:
Daniel Hahler
2019-09-14 20:49:13 +02:00
committed by Nikita Sobolev
parent 5b9a467cf0
commit 82e3aa5464
2 changed files with 4 additions and 7 deletions

View File

@@ -6,9 +6,7 @@ jobs:
include:
- name: Run plugin test suite with python 3.7
python: 3.7
script: |
set -e
pytest
script: 'pytest'
- name: Typecheck Django test suite with python 3.7
python: 3.7
@@ -24,7 +22,7 @@ jobs:
- name: Lint with black
python: 3.7
script: 'black --check --line-length=120 django-stubs/'
script: 'black --check django-stubs/'
- name: Lint plugin code with flake8
python: 3.7
@@ -35,7 +33,6 @@ jobs:
script: 'isort --check'
before_install: |
# Upgrade pip, setuptools, and wheel
pip install -U pip setuptools wheel
install: |
pip install -r ./dev-requirements.txt
pip install -r ./dev-requirements.txt

View File

@@ -1,3 +1,3 @@
[tool.black]
line-length = 120
include = 'django-stubs/.*\.pyi$'
include = 'django-stubs/.*\.pyi$'