gdal
gdal copied to clipboard
CI: pre-commit/[email protected] action is deprecated, and no longer works. Breaks the "linting" job
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/
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
I believe that https://github.com/OSGeo/gdal/pull/6706 resolved this issue but I am not sure @rouault