Skip to content

pre-commit hangs, maybe due to new flake8 #118

@fepegar

Description

@fepegar

This happens on CI but I think also locally when using flake8 4.0.1. I managed to reproduce this locally running:

conda create -n test python=3.9 -y && conda activate test
mkdir folder && cd folder
pip install pre-commit
cp ~/git/torchio/.pre-commit-config.yaml
[change flake8 version to 4.0.1]  # Note this is not a real command!
echo "print(x)" > file.py
git init .
git add file.py
pre-commit install
pre-commit run --all-files --verbose  # hangs (or takes very long!)

PR created by pre-commit-ci

Build
https://results.pre-commit.ci/run/github/224148738/1649695083._kULwOBYTwK87Bmv9fY30w

Config diff in PR
https://github.com/fepegar/torchio/pull/859/files

Originally mentioned in

Maybe related to

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions