Skip to content

Commit 0d24b7d

Browse files
committed
refactor: move shared python submodule to scripts/python/shared
1 parent ff0a5e2 commit 0d24b7d

4 files changed

Lines changed: 15 additions & 15 deletions

File tree

.gitmodules

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
[submodule "scripts/python"]
2-
path = scripts/python
3-
url = https://github.com/abitofhelp/hybrid_python_scripts.git
41
[submodule "test/python"]
52
path = test/python
63
url = https://github.com/abitofhelp/hybrid_test_python.git
4+
[submodule "scripts/python/shared"]
5+
path = scripts/python/shared
6+
url = https://github.com/abitofhelp/hybrid_python_scripts.git

Makefile

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ clean-coverage:
194194

195195
clean-clutter: ## Remove temporary files, backups, and clutter
196196
@echo "$(CYAN)Cleaning temporary files and clutter...$(NC)"
197-
@$(PYTHON3) scripts/python/makefile/cleanup_temp_files.py
197+
@$(PYTHON3) scripts/python/shared/makefile/cleanup_temp_files.py
198198
@echo "$(GREEN)✓ Temporary files removed$(NC)"
199199

200200
compress:
@@ -285,7 +285,7 @@ test-e2e: build build-tests
285285

286286
test-coverage: ## Run tests with GNATcoverage analysis
287287
@echo "$(GREEN)Running tests with GNATcoverage analysis...$(NC)"
288-
@$(PYTHON3) scripts/python/makefile/coverage_ada.py
288+
@$(PYTHON3) scripts/python/shared/makefile/coverage_ada.py
289289

290290
test-python: ## Run Python script tests (arch_guard.py validation)
291291
@echo "$(GREEN)Running Python script tests...$(NC)"
@@ -333,7 +333,7 @@ check:
333333

334334
check-arch: ## Validate architecture boundaries
335335
@echo "$(GREEN)Validating architecture boundaries...$(NC)"
336-
-@PYTHONPATH=scripts/python $(PYTHON3) -m arch_guard
336+
-@PYTHONPATH=scripts/python/shared $(PYTHON3) -m arch_guard --project-root .
337337
@echo "$(YELLOW)⚠ Architecture validation complete (violations are warnings, not errors)$(NC)"
338338

339339
spark-check: ## Run SPARK CHECK formal verification
@@ -368,32 +368,32 @@ spark-prove: ## Run SPARK PROVE formal verification
368368
# THE CURRENT SCRIPT IS COMMENTING COMMENTS AND MESSING UP WITH INDEXED COMMENTS.
369369
# format-src:
370370
# @echo "$(GREEN)Formatting source code...$(NC)"
371-
# @if [ ! -f "scripts/python/makefile/ada_formatter_pipeline.donotuse.py" ]; then \
372-
# echo "$(RED)Error: scripts/python/makefile/ada_formatter_pipeline.donotuse.py not found$(NC)"; \
371+
# @if [ ! -f "scripts/python/shared/makefile/ada_formatter_pipeline.donotuse.py" ]; then \
372+
# echo "$(RED)Error: scripts/python/shared/makefile/ada_formatter_pipeline.donotuse.py not found$(NC)"; \
373373
# exit 1; \
374374
# fi
375375
# @for dir in $(SRC_DIR); do \
376376
# if [ -d "$$dir" ]; then \
377377
# find "$$dir" -name "*.ads" -o -name "*.adb" | \
378378
# while read file; do \
379379
# echo " Formatting $$file..."; \
380-
# $(PYTHON3) scripts/python/makefile/ada_formatter_pipeline.donotuse.py "$(PWD)/$(PROJECT_NAME).gpr" --include-path "$(PWD)/$$file" || true; \
380+
# $(PYTHON3) scripts/python/shared/makefile/ada_formatter_pipeline.donotuse.py "$(PWD)/$(PROJECT_NAME).gpr" --include-path "$(PWD)/$$file" || true; \
381381
# done; \
382382
# fi; \
383383
# done
384384
# @echo "$(GREEN)✓ Source formatting complete$(NC)"
385385

386386
# format-tests:
387387
# @echo "$(GREEN)Formatting test code...$(NC)"
388-
# @if [ ! -f "scripts/python/makefile/ada_formatter_pipeline.donotuse.py" ]; then \
389-
# echo "$(RED)Error: scripts/python/makefile/ada_formatter_pipeline.donotuse.py not found$(NC)"; \
388+
# @if [ ! -f "scripts/python/shared/makefile/ada_formatter_pipeline.donotuse.py" ]; then \
389+
# echo "$(RED)Error: scripts/python/shared/makefile/ada_formatter_pipeline.donotuse.py not found$(NC)"; \
390390
# exit 1; \
391391
# fi
392392
# @if [ -d "$(TEST_DIR)" ] && [ -f "$(TEST_DIR)/tests.gpr" ]; then \
393393
# find $(TEST_DIR) -name "*.ads" -o -name "*.adb" | \
394394
# while read file; do \
395395
# echo " Formatting $$file..."; \
396-
# $(PYTHON3) scripts/python/makefile/ada_formatter_pipeline.donotuse.py "$(PWD)/$(TEST_DIR)/tests.gpr" --include-path "$(PWD)/$$file" || true; \
396+
# $(PYTHON3) scripts/python/shared/makefile/ada_formatter_pipeline.donotuse.py "$(PWD)/$(TEST_DIR)/tests.gpr" --include-path "$(PWD)/$$file" || true; \
397397
# done; \
398398
# echo "$(GREEN)✓ Test formatting complete$(NC)"; \
399399
# fi
@@ -447,12 +447,12 @@ refresh: ## Refresh Alire dependencies
447447

448448
install-tools: ## Install development tools (GMP, gcovr, gnatformat)
449449
@echo "$(CYAN)Installing development tools...$(NC)"
450-
@$(PYTHON3) scripts/python/makefile/install_tools.py
450+
@$(PYTHON3) scripts/python/shared/makefile/install_tools.py
451451
@echo "$(GREEN)✓ Tool installation complete$(NC)"
452452

453453
build-coverage-runtime: ## Force rebuild GNATcoverage runtime library
454454
@echo "$(CYAN)Rebuilding GNATcoverage runtime...$(NC)"
455-
@$(PYTHON3) scripts/python/makefile/coverage_ada.py --rebuild-runtime --unit-only
455+
@$(PYTHON3) scripts/python/shared/makefile/coverage_ada.py --rebuild-runtime --unit-only
456456
@echo "$(GREEN)✓ GNATcov runtime rebuilt (run 'make test-coverage' for full analysis)$(NC)"
457457

458458
.DEFAULT_GOAL := help

scripts/python

Lines changed: 0 additions & 1 deletion
This file was deleted.

scripts/python/shared

Submodule shared added at d793edb

0 commit comments

Comments
 (0)