~netlandish/django-wiki

13b6b8c75b378a73fbb01493f661f8b8dc8f53b4 — Benjamin Bach 4 years ago 7693b58
Enable linting in Travis
3 files changed, 7 insertions(+), 2 deletions(-)

M .travis.yml
M setup.py
M tox.ini
M .travis.yml => .travis.yml +2 -0
@@ 22,6 22,8 @@ matrix:
    env: DJANGO="2.2"
  - python: 3.6
    env: DJANGO="3.0"
  - python: 3.6
    env: LINT=yes

  - python: 3.7
    env: DJANGO="2.2"

M setup.py => setup.py +1 -0
@@ 43,6 43,7 @@ test_requirements = [
test_lint_requirements = [
    "flake8>=3.7,<3.8",
    "flake8-isort",
    "black",  # Just use the latest
]

setup_requirements = [

M tox.ini => tox.ini +4 -2
@@ 5,12 5,13 @@ envlist = {py35,py36,py37}-django{21,22},{py36,py37,py38}-django{30},lint
[travis]
python =
  3.5: py35
  3.6: py36
  3.6: py36, lint
  3.7: py37
  3.8: py38

[travis:env]
DJANGO =
  2.1: django21
  2.2: django22
  3.0: django30
LINT =


@@ 44,8 45,9 @@ basepython =
  py38: python3.8

[testenv:lint]
basepython = python3
basepython: python3
deps = .[testlint]
commands =
  flake8 src/wiki
  flake8 tests/
  black --check --diff src tests setup.py