From 6d460b3ce1b5c2e62c234111bbce73ec258fb207 Mon Sep 17 00:00:00 2001 From: Chris Kuehl Date: Tue, 13 Sep 2016 08:53:13 -0700 Subject: [PATCH] Only run pre-commit on python3.5 --- Makefile | 1 + tox.ini | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 0b66483..e493654 100644 --- a/Makefile +++ b/Makefile @@ -55,6 +55,7 @@ docker-image: .PHONY: test test: tox + tox -e pre-commit .PHONY: install-hooks install-hooks: diff --git a/tox.ini b/tox.ini index d9d13ca..55b98ab 100644 --- a/tox.ini +++ b/tox.ini @@ -6,10 +6,10 @@ deps = -r{toxinidir}/requirements-dev.txt passenv = HOME SSH_AUTH_SOCK USER commands = python -m pytest - pre-commit run --all-files [testenv:pre-commit] -commands = pre-commit {posargs} +basepython = /usr/bin/python3.5 +commands = pre-commit {posargs:run --all-files} [flake8] max-line-length = 119