From a8c6aa7cc3d2983dbb47f3281dc7e19f9ea21c71 Mon Sep 17 00:00:00 2001 From: James Bruten <109733895+james-bruten-mo@users.noreply.github.com> Date: Thu, 2 Jul 2026 19:31:26 +0100 Subject: [PATCH 1/3] ignore hidden --- fortitude_linter/fortitude_launcher.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fortitude_linter/fortitude_launcher.py b/fortitude_linter/fortitude_launcher.py index f8a5f0d8..006e8a0d 100755 --- a/fortitude_linter/fortitude_launcher.py +++ b/fortitude_linter/fortitude_launcher.py @@ -52,7 +52,8 @@ def launch_fortitude( for top_dir_path in source_path.iterdir(): # e.g. applications,science,interfaces - if not top_dir_path.is_dir(): # don't try to loop over files + # don't try to loop over files or hidden directories + if not top_dir_path.is_dir() or top_dir_path.startswith("."): continue for app_path in top_dir_path.iterdir(): # e.g. adjoint_tests, adjoint, coupled_interface From 4884e4a3139a1cf484b55d27080e3819ca77ba7a Mon Sep 17 00:00:00 2001 From: James Bruten <109733895+james-bruten-mo@users.noreply.github.com> Date: Thu, 2 Jul 2026 19:32:44 +0100 Subject: [PATCH 2/3] correct type --- fortitude_linter/fortitude_launcher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fortitude_linter/fortitude_launcher.py b/fortitude_linter/fortitude_launcher.py index 006e8a0d..c702f6fe 100755 --- a/fortitude_linter/fortitude_launcher.py +++ b/fortitude_linter/fortitude_launcher.py @@ -53,7 +53,7 @@ def launch_fortitude( for top_dir_path in source_path.iterdir(): # e.g. applications,science,interfaces # don't try to loop over files or hidden directories - if not top_dir_path.is_dir() or top_dir_path.startswith("."): + if not top_dir_path.is_dir() or str(top_dir_path).startswith("."): continue for app_path in top_dir_path.iterdir(): # e.g. adjoint_tests, adjoint, coupled_interface From c32e65cbe91f4e0505ae2f3276f3c5a25140c997 Mon Sep 17 00:00:00 2001 From: James Bruten <109733895+james-bruten-mo@users.noreply.github.com> Date: Thu, 2 Jul 2026 19:34:36 +0100 Subject: [PATCH 3/3] correct type --- fortitude_linter/fortitude_launcher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fortitude_linter/fortitude_launcher.py b/fortitude_linter/fortitude_launcher.py index c702f6fe..ecb9adef 100755 --- a/fortitude_linter/fortitude_launcher.py +++ b/fortitude_linter/fortitude_launcher.py @@ -53,7 +53,7 @@ def launch_fortitude( for top_dir_path in source_path.iterdir(): # e.g. applications,science,interfaces # don't try to loop over files or hidden directories - if not top_dir_path.is_dir() or str(top_dir_path).startswith("."): + if not top_dir_path.is_dir() or str(top_dir_path.name).startswith("."): continue for app_path in top_dir_path.iterdir(): # e.g. adjoint_tests, adjoint, coupled_interface