Skip to content

Conversation

@jscheffl
Copy link
Contributor

Another small increment to remove global statements for PR #58116

This removes (most of the) global statements from configuration.py where the JWT and FERNET key were hold, smelled a bit like a public interfaces which it should not. Using a private container class to prevent usage of global variables.

The leftover AIRFLOW_HOME is marked deprecated so in this case I'd rather exclude from future PLW0603 checks

global is evil.

@jscheffl jscheffl added full tests needed We need to run full set of tests for this PR to merge all versions If set, the CI build will be forced to use all versions of Python/K8S/DBs labels Dec 26, 2025
@jscheffl jscheffl marked this pull request as ready for review December 26, 2025 13:35
@jscheffl jscheffl force-pushed the bugfix/remove-global-from-configuration branch from 336bbeb to bb130be Compare December 26, 2025 21:49
@jscheffl jscheffl changed the title Exclude check for global in configuration.py Remove global in configuration.py Dec 26, 2025
@jscheffl jscheffl merged commit 0343763 into apache:main Dec 27, 2025
209 checks passed
amoghrajesh pushed a commit to astronomer/airflow that referenced this pull request Dec 29, 2025
Subham-KRLX pushed a commit to Subham-KRLX/airflow that referenced this pull request Jan 2, 2026
stegololz pushed a commit to stegololz/airflow that referenced this pull request Jan 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

all versions If set, the CI build will be forced to use all versions of Python/K8S/DBs full tests needed We need to run full set of tests for this PR to merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants