Python37 (#12)

* add dist: xenial

* try travis fix with matrix include.

* remove unnecessary elif
This commit is contained in:
Dave Gallant
2018-10-08 22:44:06 -04:00
committed by GitHub
parent a814a290ac
commit 56ab030423
4 changed files with 11 additions and 6 deletions

View File

@@ -1,16 +1,21 @@
sudo: false
language: python
sudo: false
python:
- "2.7"
- "3.5"
- "3.6"
# - "3.7"
# Enable 3.7 without globally enabling sudo and dist: xenial for other build jobs
matrix:
include:
- python: 3.7
dist: xenial
sudo: true
before_install:
- "pip install -U pip"
- "python setup.py install"
install:
- pip install tox-travis
- pip install pytest==3.6.0
- pip install pytest
- pip install pylint
script:
- tox

View File

@@ -54,7 +54,7 @@ def calculate_score(post):
def get_safe_per_page(limit):
if limit < 5:
return 5
elif limit > 40:
if limit > 40:
return 40
return limit

View File

@@ -29,7 +29,7 @@ def get_terminal_width():
def get_vote_color(score):
if score > 0:
return Fore.GREEN + " [+" + str(score) + "] "
elif score < 0:
if score < 0:
return Fore.RED + " [" + str(score) + "] "
return Fore.BLUE + " [" + str(score) + "] "

View File

@@ -2,7 +2,7 @@
envlist = py{27,
35,
36,
#37,
37,
}
[testenv]