Commit Graph
4 Commits
Author SHA1 Message Date
kevinveenbirkenbach 7123841fb4 style: apply ruff autoformat 2025-12-17 16:37:21 +01:00
kevinveenbirkenbach ec284cc765 fix(lint): resolve Ruff E701/E702 and exclude build artifacts
- Fix E701 by expanding single-line class and loop statements into blocks
- Fix E702 by splitting semicolon-separated statements
- Exclude build/, dist/, venv, and egg-info from Ruff linting
- Apply fixes consistently to source and generated files

No runtime behavior changes; lint-only cleanup to stabilize CI.

https://chatgpt.com/share/6942c9e3-80fc-800f-b471-5e1ee567f8fe
2025-12-17 16:18:53 +01:00
kevinveenbirkenbach ed73a37795 Improve get_app_conf robustness and add skip_missing_app parameter support
- Added new optional parameter 'skip_missing_app' to get_app_conf() in module_utils/config_utils.py to safely return defaults when applications are missing.
- Updated group_vars/all/00_general.yml and roles/web-app-nextcloud/config/main.yml to include skip_missing_app=True in all Nextcloud-related calls.
- Added comprehensive unit tests under tests/unit/module_utils/test_config_utils.py covering missing app handling, schema enforcement, nested lists, and index edge cases.

Ref: https://chatgpt.com/share/68ee6b5c-6db0-800f-bc20-d51470d7b39f
2025-10-14 17:25:37 +02:00
kevinveenbirkenbach 16c1a5d834 Refactored get_app_conf 2025-07-22 10:08:47 +02:00