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 <[email protected]> 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: [email protected] For additional commands, e-mail: [email protected]
