You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tooling.apache.org by sb...@apache.org on 2026/02/19 19:59:20 UTC

(tooling-trusted-releases) 02/02: Add dot file check

This is an automated email from the ASF dual-hosted git repository.

sbp pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tooling-trusted-releases.git

commit 921c41dff8ea9640477211e1253acbaba0e7316b
Author: Dave Fisher <da...@comcast.net>
AuthorDate: Thu Feb 19 11:55:12 2026 -0800

    Add dot file check
---
 atr/util.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/atr/util.py b/atr/util.py
index 29ae5928..60a78df9 100644
--- a/atr/util.py
+++ b/atr/util.py
@@ -1247,6 +1247,9 @@ def validate_path_segment(path_segment: str, position: str = "Path segment") ->
     if path_segment in (".git", ".svn"):
         raise ValueError(f"{position} cannot be a SCM directory")
 
+    if path_segment.startswith(".") and not path_segment.startswith(".atr"):
+        raise ValueError(f"{position} cannot be a DOT file")
+
     return path_segment
 
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@tooling.apache.org
For additional commands, e-mail: commits-help@tooling.apache.org