Skip to content

Commit

Permalink
Merge pull request #226 from Kinto/ds/ci-black
Browse files Browse the repository at this point in the history
Run black on CI
  • Loading branch information
dstaley committed Feb 27, 2020
2 parents 887ae9b + a288c18 commit 295d737
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 18 deletions.
12 changes: 3 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,9 @@ matrix:
dist: xenial
sudo: true
env: TOX_ENV=py37 SERVER=development
- python: 3.6
env:
- TOX_ENV=flake8
before_install:
- python --version
- python: 3.7
dist: xenial
sudo: true
env:
- TOX_ENV=flake8
before_install:
- python --version
- TOX_ENV=code-lint
script:
- make lint
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ flake8: install-dev
black: install-dev
$(VENV)/bin/black kinto_http

lint: install-dev
$(VENV)/bin/therapist run --use-tracked-files kinto_http

clean:
find . -name '*.pyc' -delete
find . -name '__pycache__' -type d | xargs rm -fr
Expand Down
9 changes: 0 additions & 9 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,3 @@ commands =
py.test kinto_http/tests/functional.py kinto_http/tests --cov-report term-missing --cov-fail-under 100 --cov kinto_http {posargs}
deps = -rdev-requirements.txt
install_command = pip install {opts} {packages}

[testenv:flake8]
basepython = python3
commands = flake8 kinto_http
deps =
flake8

[flake8]
max-line-length = 99

0 comments on commit 295d737

Please sign in to comment.