Skip to content

add support for is_loaded to allow conditional loading#106

Open
apollo13 wants to merge 2 commits into
lincolnloop:mainfrom
apollo13:fb-is-loaded
Open

add support for is_loaded to allow conditional loading#106
apollo13 wants to merge 2 commits into
lincolnloop:mainfrom
apollo13:fb-is-loaded

Conversation

@apollo13

@apollo13 apollo13 commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

I am using config.load() in my Django settings.py but in some cases I want to "preload" them from somewhere else. With this flag I could skip loading.

@codecov

codecov Bot commented Jul 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (dbfe36a) to head (48b785c).

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #106   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            8         8           
  Lines          401       410    +9     
  Branches         5         5           
=========================================
+ Hits           401       410    +9     
Flag Coverage Δ
dev 98.53% <100.00%> (+0.03%) ⬆️
py310-django52 99.02% <100.00%> (+0.02%) ⬆️
py311-django52 98.53% <100.00%> (+0.03%) ⬆️
py312-django60 98.53% <100.00%> (+0.03%) ⬆️
py313-django60 98.53% <100.00%> (+0.03%) ⬆️
py314-django60 98.50% <100.00%> (+0.03%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

@apollo13
apollo13 force-pushed the fb-is-loaded branch 2 times, most recently from 9f65b80 to 5316514 Compare July 17, 2026 10:20
Comment thread pyproject.toml
dependencies = [
"pydantic-settings>=2.13",
"pydantic>=2.7",
"pydantic>=2.12",

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sadly this is required (I tried all versions below) since we seem to be running into a pydantic bug otherwise. That said if people need to use old pydantic they can pin goodconf (also this is not like the 1 -> 2 migration)

@ipmb

ipmb commented Jul 21, 2026

Copy link
Copy Markdown
Member

lgtm 👍

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.

2 participants