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

fix circular import errors in settings with edgy #257

Merged
merged 7 commits into from
Jan 7, 2025

Conversation

devkral
Copy link
Contributor

@devkral devkral commented Jan 7, 2025

Recent changes made it more likely to hit circular import errors when providing settings.

This PR fixes the problem by leveraging the new more lenient monkay 0.2 version and evaluate the settings in cases of import errors later.

Changes:

  • try hard to prevent circular dependency errors
  • update docs
  • be more lenient on non existing settings, in case they are set later

Recent changes made it more likely to hit circular import errors when
providing settings.
This PR fixes the problem by leveraging the new more lenient monkay 0.2 version and
initialize the settings in cases of import errors later.
@devkral devkral force-pushed the devkral/fixes/circular_deps branch from ad437a5 to 1e6c769 Compare January 7, 2025 11:35
@devkral devkral requested a review from tarsil January 7, 2025 15:07
docs_src/commands/discover.py Outdated Show resolved Hide resolved
docs/release-notes.md Outdated Show resolved Hide resolved
docs_src/migrations/fastapi.py Outdated Show resolved Hide resolved
docs_src/migrations/migrations.py Outdated Show resolved Hide resolved
docs_src/migrations/starlette.py Outdated Show resolved Hide resolved
docs_src/tips/connection.py Outdated Show resolved Hide resolved
docs_src/tips/migrations.py Outdated Show resolved Hide resolved
docs_src/tips/sandwich_main.py Outdated Show resolved Hide resolved
@devkral devkral merged commit 080031a into main Jan 7, 2025
10 checks passed
@devkral devkral deleted the devkral/fixes/circular_deps branch January 7, 2025 16:22
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