Skip to content

Swap out references to pre-commit with prek #2418

Swap out references to pre-commit with prek

Swap out references to pre-commit with prek #2418

Workflow file for this run

# This is a basic workflow to check for broken links with GitHub Actions
name: Link Checker
on:
push:
branches:
- main
- "renovate/**"
pull_request:
jobs:
link-checker:
timeout-minutes: 2
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Link Checker
id: lychee
uses: lycheeverse/lychee-action@8646ba30535128ac92d33dfc9133794bfdd9b411 # v2.8.0
with:
# Exclude relative links to other pages. Ignore
# gnu.org and fsf.org because they're often down but are still the right
# websites to link to!
#
# Ignore the whole of the project slug README since the links are
# necessarily not real links - i.e. demos and to be filled by
# cookiecutter values.
args: "--verbose
--accept 100..=103,200..=299,403
--exclude https://stackoverflow.com
--exclude http://www.gnu.org
--exclude http://fsf.org
--exclude https://labs.quansight.org
--exclude docs/pages
--exclude docs/_includes
--exclude-path '\\{\\{cookiecutter.project_slug\\}\\}/README.md'
--exclude-path 'tests/data'
-- ."
fail: true
jobSummary: true
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}