Skip to content
New issue

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

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

Already on GitHub? # to your account

Import helpers in local and production settings #719

Merged
merged 1 commit into from
May 29, 2024

Conversation

replaceafill
Copy link
Member

The base settings module used to import the get_env_variable helper but didn't use it. It was indirectly imported from the local and production settings modules using star imports:

from .base import *

When Ruff was initially run on the repository it detected the unused import and "fixed" (removed) it which broke the other modules.

This PR imports the helpers needed explicitly from each settings module and it also moves the ignored noqa pragmas into Ruffs configuration file.

Connected to archivematica/Issues#1693

The base settings module used to import the get_env_variable helper
but didn't use it. It was indirectly imported from the local and
production settings modules.

When Ruff was initially run on the repository it detected the unused
import and "fixed" it breaking the other modules.

This imports the helpers needed explicitly from each settings module
and it also moves the ignored "noqa" pragmas into Ruffs configuration
file.
@replaceafill replaceafill requested a review from a team May 29, 2024 15:57
@replaceafill replaceafill merged commit 23f0236 into qa/0.x May 29, 2024
9 checks passed
@replaceafill replaceafill deleted the dev/fix-settings branch May 29, 2024 20:27
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants