From f4b3add8ab91fe92bc3ca6c2f4edb7291bd603a4 Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Tue, 25 Jun 2019 18:19:10 -0700 Subject: [PATCH] Suggest tox --devenv instead of tox -e venv --- CONTRIBUTING.md | 4 ++-- azure-pipelines.yml | 2 +- tox.ini | 4 ---- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index cc206b52..2b83c823 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -16,8 +16,8 @@ This is useful for running specific tests. The easiest way to set this up is to run: -1. `tox -e venv` -2. `. venv-pre_commit/bin/activate` +1. `tox --devenv venv` (note: requires tox>=3.13) +2. `. venv/bin/activate` This will create and put you into a virtualenv which has an editable installation of pre-commit. Hack away! Running `pre-commit` will reflect diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 381ff0e7..30b873a0 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -10,7 +10,7 @@ resources: type: github endpoint: github name: asottile/azure-pipeline-templates - ref: refs/tags/v0.0.14 + ref: refs/tags/v0.0.15 jobs: - template: job--pre-commit.yml@asottile diff --git a/tox.ini b/tox.ini index e24c2470..1fac9332 100644 --- a/tox.ini +++ b/tox.ini @@ -15,10 +15,6 @@ skip_install = true deps = pre-commit commands = pre-commit run --all-files --show-diff-on-failure -[testenv:venv] -envdir = venv-pre_commit -commands = - [pep8] ignore = E265,E501,W504