[AIRFLOW-4034] Make string formatting explicit by removing **locals()#4861
[AIRFLOW-4034] Make string formatting explicit by removing **locals()#4861Fokko merged 1 commit intoapache:masterfrom BasPH:bash-remove-locals-globals
Conversation
|
Sad CI: |
|
Those errors seem unrelated? Shall I trigger another build? |
|
Done a re-run. No luck... Will try to find some time later this week. |
|
Ok, let me know! 👍 |
**locals() is used a lot for string formatting. This is considered bad programming practice.
|
@Fokko I found a bug and fixed it (the |
|
Restarted the job! Let's see. |
Codecov Report
@@ Coverage Diff @@
## master #4861 +/- ##
==========================================
+ Coverage 75.76% 75.76% +<.01%
==========================================
Files 461 461
Lines 29955 29949 -6
==========================================
- Hits 22694 22691 -3
+ Misses 7261 7258 -3
Continue to review full report at Codecov.
|
…4861) **locals() is used a lot for string formatting. This is considered bad programming practice.
…pache#4861) **locals() is used a lot for string formatting. This is considered bad programming practice.
…pache#4861) **locals() is used a lot for string formatting. This is considered bad programming practice.
…pache#4861) **locals() is used a lot for string formatting. This is considered bad programming practice.
…pache#4861) **locals() is used a lot for string formatting. This is considered bad programming practice.
Make sure you have checked all steps below.
Jira
Description
I've replaced all
"...{var}...".format(**locals())by:"...{var}...".format(var=var)if string"...%s...", myvarif used in loggingbecause it is explicit what variables are used in the string formatting.
Tests
Commits
Documentation
Code Quality
flake8