From fd100e8fcb66d675a481c934f050c3b7c4a00760 Mon Sep 17 00:00:00 2001 From: Victor Engmark Date: Fri, 10 Mar 2023 11:46:59 +1300 Subject: [PATCH] feat: Verify that repo paths are portable --- .pre-commit-config.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index fa03b8f..53e6fb0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,6 +2,16 @@ # Please run `pre-commit run --all-files` when adding or changing entries. repos: + - repo: local + hooks: + - id: pathchk + name: pathchk + entry: pathchk + args: [--portability] + exclude: ^([a-zA-Z0-9._][a-zA-Z0-9._-]+)(/[a-zA-Z0-9._][a-zA-Z0-9._-]+)*$ # https://lists.gnu.org/archive/html/coreutils/2023-01/msg00006.html + language: system + stages: [commit] + - repo: https://github.com/pre-commit/mirrors-prettier rev: 6f3cb139ef36133b6f903b97facc57b07cef57c9 # frozen: v3.0.0-alpha.6 hooks: