You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add Folder Handling and Logging Enhancements (#12)
#### Overview
This PR introduces folder structure support in the `generate` and
`validate` commands, along with improved logging functionality using
`colorlog` for better debugging and runtime insights.
#### Changes
- **Folder Structure Support**:
- The `generate.py` script now supports creating folder structures from
YAML definitions.
- Added validation for the folder structure in `validate.py`, ensuring
folders are correctly defined and contain a valid `struct` key.
- **Logging Enhancements**:
- New logging configuration file `logging_config.py` introduced,
integrating `colorlog` for color-coded log output.
- Refactored log levels in various parts of the code, changing some
`info` logs to `debug` where appropriate for better verbosity control.
- **Dependency Update**:
- Added `colorlog` to `requirements.txt` to support colored logging.
#### Justification
The ability to define folder structures in YAML is critical for handling
more complex project setups, especially for projects relying on modular
directory layouts. Enhanced logging is essential for improving the
traceability and debuggability of the tool's operations.
#### Impact
- Teams will now be able to define and validate folder structures more
easily within the configuration files.
- Logging improvements will make debugging easier and more informative,
particularly during dry runs and when setting up folder hierarchies.
- The addition of `colorlog` may require updating environments to
include the new dependency.
0 commit comments