gdal icon indicating copy to clipboard operation
gdal copied to clipboard

CI: pre-commit/[email protected] action is deprecated, and no longer works. Breaks the "linting" job

Open rouault opened this issue 3 years ago • 2 comments

CC @snowman2

https://github.com/rouault/gdal/actions/runs/3471945789/jobs/5802737534 job fails on cloning https://gitlab.com/pycqa/flake8, repository which is no longer listed at https://gitlab.com/pycqa

https://github.com/pre-commit/action suggests to switch to https://pre-commit.ci/

rouault avatar Nov 15 '22 17:11 rouault

The action can be replaced with:

apt-get update && apt-get install -y git
python -m pip install pre-commit
pre-commit run --show-diff-on-failure --all-files

snowman2 avatar Nov 15 '22 17:11 snowman2

I believe that https://github.com/OSGeo/gdal/pull/6706 resolved this issue but I am not sure @rouault

jratike80 avatar Oct 03 '25 09:10 jratike80