mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Merge pull request #1067 from pre-commit/devenv
Suggest tox --devenv instead of tox -e venv
This commit is contained in:
commit
0cf2638b3b
3 changed files with 3 additions and 7 deletions
|
|
@ -16,8 +16,8 @@
|
||||||
This is useful for running specific tests. The easiest way to set this up
|
This is useful for running specific tests. The easiest way to set this up
|
||||||
is to run:
|
is to run:
|
||||||
|
|
||||||
1. `tox -e venv`
|
1. `tox --devenv venv` (note: requires tox>=3.13)
|
||||||
2. `. venv-pre_commit/bin/activate`
|
2. `. venv/bin/activate`
|
||||||
|
|
||||||
This will create and put you into a virtualenv which has an editable
|
This will create and put you into a virtualenv which has an editable
|
||||||
installation of pre-commit. Hack away! Running `pre-commit` will reflect
|
installation of pre-commit. Hack away! Running `pre-commit` will reflect
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ resources:
|
||||||
type: github
|
type: github
|
||||||
endpoint: github
|
endpoint: github
|
||||||
name: asottile/azure-pipeline-templates
|
name: asottile/azure-pipeline-templates
|
||||||
ref: refs/tags/v0.0.14
|
ref: refs/tags/v0.0.15
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
- template: job--pre-commit.yml@asottile
|
- template: job--pre-commit.yml@asottile
|
||||||
|
|
|
||||||
4
tox.ini
4
tox.ini
|
|
@ -15,10 +15,6 @@ skip_install = true
|
||||||
deps = pre-commit
|
deps = pre-commit
|
||||||
commands = pre-commit run --all-files --show-diff-on-failure
|
commands = pre-commit run --all-files --show-diff-on-failure
|
||||||
|
|
||||||
[testenv:venv]
|
|
||||||
envdir = venv-pre_commit
|
|
||||||
commands =
|
|
||||||
|
|
||||||
[pep8]
|
[pep8]
|
||||||
ignore = E265,E501,W504
|
ignore = E265,E501,W504
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue