Skip to content

Commit

Permalink
Update noxfile to use python3.7 (#204)
Browse files Browse the repository at this point in the history
  • Loading branch information
stsewd authored and theacodes committed May 31, 2019
1 parent bf4977d commit 2dbaaaf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
9 changes: 5 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
language: python
matrix:
include:
- python: '3.6'
env: NOXSESSION=lint
- python: '3.5'
env: NOXSESSION="tests-3.5"
- python: '3.6'
env: NOXSESSION="tests-3.6"
- python: '3.7'
env: NOXSESSION="tests-3.7"
dist: xenial # required for Python 3.7 (travis-ci/travis-ci#9069)
sudo: required # required for Python 3.7 (travis-ci/travis-ci#9069)
- python: '3.6'
- python: '3.7'
env: NOXSESSION="lint"
dist: xenial # required for Python 3.7 (travis-ci/travis-ci#9069)
- python: '3.7'
env: NOXSESSION="docs"
dist: xenial # required for Python 3.7 (travis-ci/travis-ci#9069)
install:
- pip install --upgrade pip setuptools
- pip install .
Expand Down
6 changes: 3 additions & 3 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,22 +44,22 @@ def cover(session):
session.run("coverage", "erase")


@nox.session(python="3.6")
@nox.session(python="3.7")
def blacken(session):
"""Run black code formater."""
session.install("black")
session.run("black", "nox", "tests", "noxfile.py", "setup.py")


@nox.session(python="3.6")
@nox.session(python="3.7")
def lint(session):
"""Lint using flake8."""
session.install("flake8", "flake8-import-order", "black")
session.run("black", "--check", "nox", "tests", "noxfile.py", "setup.py")
session.run("flake8", "nox", "tests")


@nox.session(python="3.6")
@nox.session(python="3.7")
def docs(session):
"""Build the documentation."""
session.run("rm", "-rf", "docs/_build", external=True)
Expand Down

0 comments on commit 2dbaaaf

Please sign in to comment.