weixin_39632057
2021-01-12 15:01 阅读 1

added python venv language

Next attempt at #738 (and #631).

Adds a new language python_venv. It works like python but uses python -m venv instead of python -m virtualenv.

I couldn't re-use as much code from python as I would have liked because of in_env, but I don't think it's too bad.

Manually tested on my machine in a project using venv where the default pre-commit didn't work.

该提问来源于开源项目:pre-commit/pre-commit

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

6条回答 默认 最新

  • weixin_39955149 weixin_39955149 2021-01-12 15:01

    cool, I'll help write up some tests and simplify the code a bit -- are you ok with me pushing to your branch? (figured I'd ask before I just do it 😆)

    点赞 评论 复制链接分享
  • weixin_39632057 weixin_39632057 2021-01-12 15:01

    go right ahead

    点赞 评论 复制链接分享
  • weixin_39955149 weixin_39955149 2021-01-12 15:01

    (just a note: I haven't forgotten about this! just busy with travel and work 😆)

    点赞 评论 复制链接分享
  • weixin_39632057 weixin_39632057 2021-01-12 15:01

    Could you make a release with this please?

    点赞 评论 复制链接分享
  • weixin_39955149 weixin_39955149 2021-01-12 15:01

    yep! planning to do so, thought I'd wait just a bit to see if I could get 's contribution which adds rust support into this release but I guess I can just make another release after that's ready :)

    点赞 评论 复制链接分享
  • weixin_39955149 weixin_39955149 2021-01-12 15:01

    This has been released as part of v1.9.0!

    点赞 评论 复制链接分享

相关推荐