This is an automated email from the ASF dual-hosted git repository.
jiayu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sedona.git
The following commit(s) were added to refs/heads/master by this push:
new 2901cee288 [CI] pre-commit: add hook `chmod` with `manual` stage
(#2200)
2901cee288 is described below
commit 2901cee288670023b6948e362b8c8e990a4bbb1a
Author: John Bampton <[email protected]>
AuthorDate: Fri Aug 1 04:10:04 2025 +1000
[CI] pre-commit: add hook `chmod` with `manual` stage (#2200)
Can you run chmod on Windows?
The name is an abbreviation of change mode, which does not exist in Windows
OS
Set this hook to manual since chmod doesn't run on Windows.
Allows Windows users to still run the standard pre-commit workflow.
The manual stage can be run by Mac and Linux users.
We can setup the manual stage to run on GitHub actions so we don't lose
coverage and there is another PR for that with other hooks that have manual
stages.
---
.pre-commit-config.yaml | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 62fbef4147..d941bace44 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -78,6 +78,11 @@ repos:
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.5
hooks:
+ - id: chmod
+ name: set file permissions
+ args: ['644']
+ files: \.md$
+ stages: [manual]
- id: insert-license
name: add license for all .c files
files: \.c$