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

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


The following commit(s) were added to refs/heads/sbp by this push:
     new 5db7392a Add missing parentheses
5db7392a is described below

commit 5db7392a7d31581bf0c4895bf05df163b133c6a5
Author: Sean B. Palmer <[email protected]>
AuthorDate: Tue Feb 24 16:14:49 2026 +0000

    Add missing parentheses
---
 atr/server.py | 2 +-
 atr/util.py   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/atr/server.py b/atr/server.py
index 6dcee179..03927a78 100644
--- a/atr/server.py
+++ b/atr/server.py
@@ -553,7 +553,7 @@ def _create_app(app_config: type[config.AppConfig]) -> 
base.QuartApp:
     if os.sep != "/":
         raise RuntimeError('ATR requires a POSIX compatible filesystem where 
os.sep is "/"')
     config_mode = config.get_mode()
-    if not util.is_dev_environment() and config_mode == config.Mode.Debug:
+    if (not util.is_dev_environment()) and (config_mode == config.Mode.Debug):
         raise RuntimeError("Debug mode can only be set in development 
environment")
     hot_reload = _is_hot_reload()
     _validate_config(app_config, hot_reload)
diff --git a/atr/util.py b/atr/util.py
index 6e55f577..93bf0d10 100644
--- a/atr/util.py
+++ b/atr/util.py
@@ -1158,7 +1158,7 @@ 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"):
+    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]

Reply via email to