| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
The global_libraries dict uses keys with hyphens (e.g. 'brew-cask'), but tox_matrix.py was iterating over underscores ('brew_cask') when building the matrix items. This caused brew-cask libraries requested in tox.yml to be silently ignored. This commit maps the YAML key to the matrix key to fix the lookup.
On Windows, git checkouts with CRLF cause the update_scripts_in_yml hook to encode \r\n characters, but pre-commit.ci on Linux encodes LF, leading to a constant base64 string mismatch and CI failures. This normalizes line endings to LF right before encoding.
| Back | FazBrowse Home | New Git URL |
What's the problem?
The global_libraries dict in tox_matrix.py uses hyphenated keys (e.g. brew-cask), but the matrix-building code was looking them up with underscores (brew_cask). Because Python dicts do an exact key match, the lookup always missed, and any brew-cask entries in tox.yml were silently dropped — no error, no warning, just nothing installed.
What changed?
How to verify?
Add a brew-cask library to tox.yml, run the matrix generation, and confirm it shows up in the output rather than being silently ignored.
Notes
No logic changes beyond the key mapping. Existing behaviour for all other library types (brew, apt, etc.) is unaffected.