Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewrite yaml loader #13803

Merged
merged 3 commits into from
Sep 17, 2024
Merged

Rewrite yaml loader #13803

merged 3 commits into from
Sep 17, 2024

Conversation

gtsiam
Copy link
Contributor

@gtsiam gtsiam commented Sep 17, 2024

Onward with trying to clean up the lifecycle of the python app; I encountered the hack in load_config_with_no_duplicates().

  • Rewrote YAML config parsing to match PyYAML's behavior exactly on non-duplicate keys.
  • Added __pycache__ to .gitignore instead of just the .pyc files. No effect other than greying-out the __pycache__ entries in vscode.

The old implementation would fail in weird ways with configs that were
incorrect in just the right way. The new implementation just does what
PyYAML would do, only diverging in case of duplicate keys.
Copy link

netlify bot commented Sep 17, 2024

Deploy Preview for frigate-docs canceled.

Name Link
🔨 Latest commit f2b4fb8
🔍 Latest deploy log https://app.netlify.com/sites/frigate-docs/deploys/66e9e153a5cfbd0008fff472

frigate/util/builtin.py Outdated Show resolved Hide resolved
Co-authored-by: Nicolas Mowen <nickmowen213@gmail.com>
@hawkeye217 hawkeye217 merged commit 38ff46e into blakeblackshear:dev Sep 17, 2024
10 checks passed
hawkeye217 added a commit that referenced this pull request Sep 17, 2024
NickM-27 pushed a commit that referenced this pull request Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants