Skip to content

Request for a new release to include python_venv fix for pre-commit compatibility #294

@yuema137

Description

@yuema137

Hi,

The latest version of pre-commit no longer supports python_venv as a language option, which makes the venv hook causing an error like this (same as #289 ):

==> At Hook(id='docformatter-venv')
    ==> At key: language
    =====> Expected one of conda, coursier, dart, docker, docker_image, dotnet, fail, golang, haskell, lua, node, perl, pygrep, python, r, ruby, rust, script, swift, system but got: 'python_venv'
    Check the log at /pc/pre-commit.log

I noticed that the venv hook in the .pre-commit-hooks.yaml file has been removed in the master branch. However, the latest release (v1.7.5) does not include this fix, and this is causing compatibility issues when installing via pip using pre-commit.

Since the issue has been fixed in the master branch, would it be possible to release a new version so that users installing via pip can benefit from this fix?

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    C: stakeholderRelates to docformatter stakeholder requested behaviorP: enhancementFeature that is outside the scope of PEP 257U: lowA relatively low urgency issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions