-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
W1203 with F-strings #2354
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
Comments
Hi, thanks for reporting an issue. That's right, this message is emitted when f-strings are used with logging methods, and it recommends to switch to |
Is there a PEP that justifies this, or perhaps a thread in which 2+ core Python devs agree with this stance? If not, what makes this an objectively good idea? |
@charlescbeebe If I'm not mistaken |
@neitsa you are correct, if the loglevel is such that the statement does not get emitted, then using % formatting will save you the cost of string interpolation. However, in practice because f-strings are so performant even when doing the string interpolation, the savings in time is extremely negligible (see the timeit results at #2395). Furthermore, if the interpolation is happening (ex if log level is set to So if you follow the Pylint suggestion and don't use f-strings you're making your code slower in some places and maybe slightly faster in others (depending on loglevel and how many logging statements you're suppressing by loglevel). At the end of the day though, unless you're logging a lot of calls at a loglevel that's ignored (like on the order of millions), then the performance difference is going to be not-noticeable regardless of which you choose. Additionally, putting the performance discussion aside, f-strings have many other advantages over % formatting from a readability and/or flexibility perspective. |
Turned off logging-fstring-interpolation in .pylintrc. I think the possible tiny performance penalty is offset by the readability gains, as noted at pylint-dev/pylint#2354 (comment)
Turned off logging-fstring-interpolation in .pylintrc. I think the possible tiny performance penalty is offset by the readability gains, as noted at pylint-dev/pylint#2354 (comment)
feat: add athena_sample_sizes option Add an athena_sample_sizes() shim, to call Athena using the same call signature as bravo_sample_sizes() Calculate Athena p-values Define get_athena_test_statistics() shim patterned after bravo.get_test_statistics() Still following earlier integration work based on ab525ad from 2020-05-05 Move shim to new audit_math location Based on Arlo changes in the meantime. Dirty patch to bravo.py for using athena Allow user to choose audit_math implementation at startup. The default is now to use Athena, but the $ARLO_ALGORITHM environmental variable can be used to select an algorithm at run time. E.g.: ARLO_ALGORITHM=bravo ./run-dev.sh N.B.: to avoid have to add too much other logic before we decide on the best way to integrate this, we simply conditionally replace bravo.bravo_sample_sizes with athena_sample_sizes: if ALGORITHM == "athena": bravo_sample_sizes = athena_sample_sizes Also catch up with API updates in athena repo. Switch to minerva, adapt to Athena api changes FIXME: bravo tests still broken Need to check the minerva test results. Temp README changes; logging setup; more tests Temp: run black, note issues Resolve lint, typing errors; fstring logging Turned off logging-fstring-interpolation in .pylintrc. I think the possible tiny performance penalty is offset by the readability gains, as noted at pylint-dev/pylint#2354 (comment) Clarify README and auth0.md; fix .pylintrc format Add athena from git to Pipfile Note changes in Pipfile.lock - not sure if you want the rest of the packages to be updated, or to have specific version numbers. Add logging during startup Fix typo, get node, cli buildpacks to build Specify Heroku version python-3.7.8 in runtime.txt Fix Pipfile.lock syntax Clean up some logging
feat: add athena_sample_sizes option Add an athena_sample_sizes() shim, to call Athena using the same call signature as bravo_sample_sizes() Calculate Athena p-values Define get_athena_test_statistics() shim patterned after bravo.get_test_statistics() Still following earlier integration work based on ab525ad from 2020-05-05 Move shim to new audit_math location Based on Arlo changes in the meantime. Dirty patch to bravo.py for using athena Allow user to choose audit_math implementation at startup. The default is now to use Athena, but the $ARLO_ALGORITHM environmental variable can be used to select an algorithm at run time. E.g.: ARLO_ALGORITHM=bravo ./run-dev.sh N.B.: to avoid have to add too much other logic before we decide on the best way to integrate this, we simply conditionally replace bravo.bravo_sample_sizes with athena_sample_sizes: if ALGORITHM == "athena": bravo_sample_sizes = athena_sample_sizes Also catch up with API updates in athena repo. Switch to minerva, adapt to Athena api changes FIXME: bravo tests still broken Need to check the minerva test results. Temp README changes; logging setup; more tests Temp: run black, note issues Resolve lint, typing errors; fstring logging Turned off logging-fstring-interpolation in .pylintrc. I think the possible tiny performance penalty is offset by the readability gains, as noted at pylint-dev/pylint#2354 (comment) Clarify README and auth0.md; fix .pylintrc format Add athena from git to Pipfile Note changes in Pipfile.lock - not sure if you want the rest of the packages to be updated, or to have specific version numbers. Add logging during startup Fix typo, get node, cli buildpacks to build Specify Heroku version python-3.7.8 in runtime.txt Fix Pipfile.lock syntax Clean up some logging
feat: add athena_sample_sizes option Add an athena_sample_sizes() shim, to call Athena using the same call signature as bravo_sample_sizes() Calculate Athena p-values Define get_athena_test_statistics() shim patterned after bravo.get_test_statistics() Still following earlier integration work based on ab525ad from 2020-05-05 Move shim to new audit_math location Based on Arlo changes in the meantime. Dirty patch to bravo.py for using athena Allow user to choose audit_math implementation at startup. The default is now to use Athena, but the $ARLO_ALGORITHM environmental variable can be used to select an algorithm at run time. E.g.: ARLO_ALGORITHM=bravo ./run-dev.sh N.B.: to avoid have to add too much other logic before we decide on the best way to integrate this, we simply conditionally replace bravo.bravo_sample_sizes with athena_sample_sizes: if ALGORITHM == "athena": bravo_sample_sizes = athena_sample_sizes Also catch up with API updates in athena repo. Switch to minerva, adapt to Athena api changes FIXME: bravo tests still broken Need to check the minerva test results. Temp README changes; logging setup; more tests Temp: run black, note issues Resolve lint, typing errors; fstring logging Turned off logging-fstring-interpolation in .pylintrc. I think the possible tiny performance penalty is offset by the readability gains, as noted at pylint-dev/pylint#2354 (comment) Clarify README and auth0.md; fix .pylintrc format Add athena from git to Pipfile Note changes in Pipfile.lock - not sure if you want the rest of the packages to be updated, or to have specific version numbers. Add logging during startup Fix typo, get node, cli buildpacks to build Specify Heroku version python-3.7.8 in runtime.txt Fix Pipfile.lock syntax Clean up some logging
feat: add athena_sample_sizes option Add an athena_sample_sizes() shim, to call Athena using the same call signature as bravo_sample_sizes() Calculate Athena p-values Define get_athena_test_statistics() shim patterned after bravo.get_test_statistics() Still following earlier integration work based on ab525ad from 2020-05-05 Move shim to new audit_math location Based on Arlo changes in the meantime. Dirty patch to bravo.py for using athena Allow user to choose audit_math implementation at startup. The default is now to use Athena, but the $ARLO_ALGORITHM environmental variable can be used to select an algorithm at run time. E.g.: ARLO_ALGORITHM=bravo ./run-dev.sh N.B.: to avoid have to add too much other logic before we decide on the best way to integrate this, we simply conditionally replace bravo.bravo_sample_sizes with athena_sample_sizes: if ALGORITHM == "athena": bravo_sample_sizes = athena_sample_sizes Also catch up with API updates in athena repo. Switch to minerva, adapt to Athena api changes FIXME: bravo tests still broken Need to check the minerva test results. Temp README changes; logging setup; more tests Temp: run black, note issues Resolve lint, typing errors; fstring logging Turned off logging-fstring-interpolation in .pylintrc. I think the possible tiny performance penalty is offset by the readability gains, as noted at pylint-dev/pylint#2354 (comment) Clarify README and auth0.md; fix .pylintrc format Add athena from git to Pipfile Note changes in Pipfile.lock - not sure if you want the rest of the packages to be updated, or to have specific version numbers. Add logging during startup Fix typo, get node, cli buildpacks to build Specify Heroku version python-3.7.8 in runtime.txt Fix Pipfile.lock syntax Clean up some logging
feat: add athena_sample_sizes option Add an athena_sample_sizes() shim, to call Athena using the same call signature as bravo_sample_sizes() Calculate Athena p-values Define get_athena_test_statistics() shim patterned after bravo.get_test_statistics() Still following earlier integration work based on ab525ad from 2020-05-05 Move shim to new audit_math location Based on Arlo changes in the meantime. Dirty patch to bravo.py for using athena Allow user to choose audit_math implementation at startup. The default is now to use Athena, but the $ARLO_ALGORITHM environmental variable can be used to select an algorithm at run time. E.g.: ARLO_ALGORITHM=bravo ./run-dev.sh N.B.: to avoid have to add too much other logic before we decide on the best way to integrate this, we simply conditionally replace bravo.bravo_sample_sizes with athena_sample_sizes: if ALGORITHM == "athena": bravo_sample_sizes = athena_sample_sizes Also catch up with API updates in athena repo. Switch to minerva, adapt to Athena api changes FIXME: bravo tests still broken Need to check the minerva test results. Temp README changes; logging setup; more tests Temp: run black, note issues Resolve lint, typing errors; fstring logging Turned off logging-fstring-interpolation in .pylintrc. I think the possible tiny performance penalty is offset by the readability gains, as noted at pylint-dev/pylint#2354 (comment) Clarify README and auth0.md; fix .pylintrc format Add athena from git to Pipfile Note changes in Pipfile.lock - not sure if you want the rest of the packages to be updated, or to have specific version numbers. Add logging during startup Fix typo, get node, cli buildpacks to build Specify Heroku version python-3.7.8 in runtime.txt Fix Pipfile.lock syntax Clean up some logging
feat: add athena_sample_sizes option Add an athena_sample_sizes() shim, to call Athena using the same call signature as bravo_sample_sizes() Calculate Athena p-values Define get_athena_test_statistics() shim patterned after bravo.get_test_statistics() Still following earlier integration work based on ab525ad from 2020-05-05 Move shim to new audit_math location Based on Arlo changes in the meantime. Dirty patch to bravo.py for using athena Allow user to choose audit_math implementation at startup. The default is now to use Athena, but the $ARLO_ALGORITHM environmental variable can be used to select an algorithm at run time. E.g.: ARLO_ALGORITHM=bravo ./run-dev.sh N.B.: to avoid have to add too much other logic before we decide on the best way to integrate this, we simply conditionally replace bravo.bravo_sample_sizes with athena_sample_sizes: if ALGORITHM == "athena": bravo_sample_sizes = athena_sample_sizes Also catch up with API updates in athena repo. Switch to minerva, adapt to Athena api changes FIXME: bravo tests still broken Need to check the minerva test results. Temp README changes; logging setup; more tests Temp: run black, note issues Resolve lint, typing errors; fstring logging Turned off logging-fstring-interpolation in .pylintrc. I think the possible tiny performance penalty is offset by the readability gains, as noted at pylint-dev/pylint#2354 (comment) Clarify README and auth0.md; fix .pylintrc format Add athena from git to Pipfile Note changes in Pipfile.lock - not sure if you want the rest of the packages to be updated, or to have specific version numbers. Add logging during startup Fix typo, get node, cli buildpacks to build Specify Heroku version python-3.7.8 in runtime.txt Fix Pipfile.lock syntax Clean up some logging
feat: add athena_sample_sizes option Add an athena_sample_sizes() shim, to call Athena using the same call signature as bravo_sample_sizes() Calculate Athena p-values Define get_athena_test_statistics() shim patterned after bravo.get_test_statistics() Still following earlier integration work based on ab525ad from 2020-05-05 Move shim to new audit_math location Based on Arlo changes in the meantime. Dirty patch to bravo.py for using athena Allow user to choose audit_math implementation at startup. The default is now to use Athena, but the $ARLO_ALGORITHM environmental variable can be used to select an algorithm at run time. E.g.: ARLO_ALGORITHM=bravo ./run-dev.sh N.B.: to avoid have to add too much other logic before we decide on the best way to integrate this, we simply conditionally replace bravo.bravo_sample_sizes with athena_sample_sizes: if ALGORITHM == "athena": bravo_sample_sizes = athena_sample_sizes Also catch up with API updates in athena repo. Switch to minerva, adapt to Athena api changes FIXME: bravo tests still broken Need to check the minerva test results. Temp README changes; logging setup; more tests Temp: run black, note issues Resolve lint, typing errors; fstring logging Turned off logging-fstring-interpolation in .pylintrc. I think the possible tiny performance penalty is offset by the readability gains, as noted at pylint-dev/pylint#2354 (comment) Clarify README and auth0.md; fix .pylintrc format Add athena from git to Pipfile Note changes in Pipfile.lock - not sure if you want the rest of the packages to be updated, or to have specific version numbers. Add logging during startup Fix typo, get node, cli buildpacks to build Specify Heroku version python-3.7.8 in runtime.txt Fix Pipfile.lock syntax Clean up some logging
feat: add athena_sample_sizes option Add an athena_sample_sizes() shim, to call Athena using the same call signature as bravo_sample_sizes() Calculate Athena p-values Define get_athena_test_statistics() shim patterned after bravo.get_test_statistics() Still following earlier integration work based on ab525ad from 2020-05-05 Move shim to new audit_math location Based on Arlo changes in the meantime. Dirty patch to bravo.py for using athena Allow user to choose audit_math implementation at startup. The default is now to use Athena, but the $ARLO_ALGORITHM environmental variable can be used to select an algorithm at run time. E.g.: ARLO_ALGORITHM=bravo ./run-dev.sh N.B.: to avoid have to add too much other logic before we decide on the best way to integrate this, we simply conditionally replace bravo.bravo_sample_sizes with athena_sample_sizes: if ALGORITHM == "athena": bravo_sample_sizes = athena_sample_sizes Also catch up with API updates in athena repo. Switch to minerva, adapt to Athena api changes FIXME: bravo tests still broken Need to check the minerva test results. Temp README changes; logging setup; more tests Temp: run black, note issues Resolve lint, typing errors; fstring logging Turned off logging-fstring-interpolation in .pylintrc. I think the possible tiny performance penalty is offset by the readability gains, as noted at pylint-dev/pylint#2354 (comment) Clarify README and auth0.md; fix .pylintrc format Add athena from git to Pipfile Note changes in Pipfile.lock - not sure if you want the rest of the packages to be updated, or to have specific version numbers. Add logging during startup Fix typo, get node, cli buildpacks to build Specify Heroku version python-3.7.8 in runtime.txt Fix Pipfile.lock syntax Clean up some logging
feat: add athena_sample_sizes option Add an athena_sample_sizes() shim, to call Athena using the same call signature as bravo_sample_sizes() Calculate Athena p-values Define get_athena_test_statistics() shim patterned after bravo.get_test_statistics() Still following earlier integration work based on ab525ad from 2020-05-05 Move shim to new audit_math location Based on Arlo changes in the meantime. Dirty patch to bravo.py for using athena Allow user to choose audit_math implementation at startup. The default is now to use Athena, but the $ARLO_ALGORITHM environmental variable can be used to select an algorithm at run time. E.g.: ARLO_ALGORITHM=bravo ./run-dev.sh N.B.: to avoid have to add too much other logic before we decide on the best way to integrate this, we simply conditionally replace bravo.bravo_sample_sizes with athena_sample_sizes: if ALGORITHM == "athena": bravo_sample_sizes = athena_sample_sizes Also catch up with API updates in athena repo. Switch to minerva, adapt to Athena api changes FIXME: bravo tests still broken Need to check the minerva test results. Temp README changes; logging setup; more tests Temp: run black, note issues Resolve lint, typing errors; fstring logging Turned off logging-fstring-interpolation in .pylintrc. I think the possible tiny performance penalty is offset by the readability gains, as noted at pylint-dev/pylint#2354 (comment) Clarify README and auth0.md; fix .pylintrc format Add athena from git to Pipfile Note changes in Pipfile.lock - not sure if you want the rest of the packages to be updated, or to have specific version numbers. Add logging during startup Fix typo, get node, cli buildpacks to build Specify Heroku version python-3.7.8 in runtime.txt Fix Pipfile.lock syntax Clean up some logging
feat: add athena_sample_sizes option Add an athena_sample_sizes() shim, to call Athena using the same call signature as bravo_sample_sizes() Calculate Athena p-values Define get_athena_test_statistics() shim patterned after bravo.get_test_statistics() Still following earlier integration work based on ab525ad from 2020-05-05 Move shim to new audit_math location Based on Arlo changes in the meantime. Dirty patch to bravo.py for using athena Allow user to choose audit_math implementation at startup. The default is now to use Athena, but the $ARLO_ALGORITHM environmental variable can be used to select an algorithm at run time. E.g.: ARLO_ALGORITHM=bravo ./run-dev.sh N.B.: to avoid have to add too much other logic before we decide on the best way to integrate this, we simply conditionally replace bravo.bravo_sample_sizes with athena_sample_sizes: if ALGORITHM == "athena": bravo_sample_sizes = athena_sample_sizes Also catch up with API updates in athena repo. Switch to minerva, adapt to Athena api changes FIXME: bravo tests still broken Need to check the minerva test results. Temp README changes; logging setup; more tests Temp: run black, note issues Resolve lint, typing errors; fstring logging Turned off logging-fstring-interpolation in .pylintrc. I think the possible tiny performance penalty is offset by the readability gains, as noted at pylint-dev/pylint#2354 (comment) Clarify README and auth0.md; fix .pylintrc format Add athena from git to Pipfile Note changes in Pipfile.lock - not sure if you want the rest of the packages to be updated, or to have specific version numbers. Add logging during startup Fix typo, get node, cli buildpacks to build Specify Heroku version python-3.7.8 in runtime.txt Fix Pipfile.lock syntax Clean up some logging
feat: add athena_sample_sizes option Add an athena_sample_sizes() shim, to call Athena using the same call signature as bravo_sample_sizes() Calculate Athena p-values Define get_athena_test_statistics() shim patterned after bravo.get_test_statistics() Still following earlier integration work based on ab525ad from 2020-05-05 Move shim to new audit_math location Based on Arlo changes in the meantime. Dirty patch to bravo.py for using athena Allow user to choose audit_math implementation at startup. The default is now to use Athena, but the $ARLO_ALGORITHM environmental variable can be used to select an algorithm at run time. E.g.: ARLO_ALGORITHM=bravo ./run-dev.sh N.B.: to avoid have to add too much other logic before we decide on the best way to integrate this, we simply conditionally replace bravo.bravo_sample_sizes with athena_sample_sizes: if ALGORITHM == "athena": bravo_sample_sizes = athena_sample_sizes Also catch up with API updates in athena repo. Switch to minerva, adapt to Athena api changes FIXME: bravo tests still broken Need to check the minerva test results. Temp README changes; logging setup; more tests Temp: run black, note issues Resolve lint, typing errors; fstring logging Turned off logging-fstring-interpolation in .pylintrc. I think the possible tiny performance penalty is offset by the readability gains, as noted at pylint-dev/pylint#2354 (comment) Clarify README and auth0.md; fix .pylintrc format Add athena from git to Pipfile Note changes in Pipfile.lock - not sure if you want the rest of the packages to be updated, or to have specific version numbers. Add logging during startup Fix typo, get node, cli buildpacks to build Specify Heroku version python-3.7.8 in runtime.txt Fix Pipfile.lock syntax Clean up some logging
feat: add athena_sample_sizes option Add an athena_sample_sizes() shim, to call Athena using the same call signature as bravo_sample_sizes() Calculate Athena p-values Define get_athena_test_statistics() shim patterned after bravo.get_test_statistics() Still following earlier integration work based on ab525ad from 2020-05-05 Move shim to new audit_math location Based on Arlo changes in the meantime. Dirty patch to bravo.py for using athena Allow user to choose audit_math implementation at startup. The default is now to use Athena, but the $ARLO_ALGORITHM environmental variable can be used to select an algorithm at run time. E.g.: ARLO_ALGORITHM=bravo ./run-dev.sh N.B.: to avoid have to add too much other logic before we decide on the best way to integrate this, we simply conditionally replace bravo.bravo_sample_sizes with athena_sample_sizes: if ALGORITHM == "athena": bravo_sample_sizes = athena_sample_sizes Also catch up with API updates in athena repo. Switch to minerva, adapt to Athena api changes FIXME: bravo tests still broken Need to check the minerva test results. Temp README changes; logging setup; more tests Temp: run black, note issues Resolve lint, typing errors; fstring logging Turned off logging-fstring-interpolation in .pylintrc. I think the possible tiny performance penalty is offset by the readability gains, as noted at pylint-dev/pylint#2354 (comment) Clarify README and auth0.md; fix .pylintrc format Add athena from git to Pipfile Note changes in Pipfile.lock - not sure if you want the rest of the packages to be updated, or to have specific version numbers. Add logging during startup Fix typo, get node, cli buildpacks to build Specify Heroku version python-3.7.8 in runtime.txt Fix Pipfile.lock syntax Clean up some logging
feat: add athena_sample_sizes option Add an athena_sample_sizes() shim, to call Athena using the same call signature as bravo_sample_sizes() Calculate Athena p-values Define get_athena_test_statistics() shim patterned after bravo.get_test_statistics() Still following earlier integration work based on ab525ad from 2020-05-05 Move shim to new audit_math location Based on Arlo changes in the meantime. Dirty patch to bravo.py for using athena Allow user to choose audit_math implementation at startup. The default is now to use Athena, but the $ARLO_ALGORITHM environmental variable can be used to select an algorithm at run time. E.g.: ARLO_ALGORITHM=bravo ./run-dev.sh N.B.: to avoid have to add too much other logic before we decide on the best way to integrate this, we simply conditionally replace bravo.bravo_sample_sizes with athena_sample_sizes: if ALGORITHM == "athena": bravo_sample_sizes = athena_sample_sizes Also catch up with API updates in athena repo. Switch to minerva, adapt to Athena api changes FIXME: bravo tests still broken Need to check the minerva test results. Temp README changes; logging setup; more tests Temp: run black, note issues Resolve lint, typing errors; fstring logging Turned off logging-fstring-interpolation in .pylintrc. I think the possible tiny performance penalty is offset by the readability gains, as noted at pylint-dev/pylint#2354 (comment) Clarify README and auth0.md; fix .pylintrc format Add athena from git to Pipfile Note changes in Pipfile.lock - not sure if you want the rest of the packages to be updated, or to have specific version numbers. Add logging during startup Fix typo, get node, cli buildpacks to build Specify Heroku version python-3.7.8 in runtime.txt Fix Pipfile.lock syntax Clean up some logging
feat: add athena_sample_sizes option Add an athena_sample_sizes() shim, to call Athena using the same call signature as bravo_sample_sizes() Calculate Athena p-values Define get_athena_test_statistics() shim patterned after bravo.get_test_statistics() Still following earlier integration work based on ab525ad from 2020-05-05 Move shim to new audit_math location Based on Arlo changes in the meantime. Dirty patch to bravo.py for using athena Allow user to choose audit_math implementation at startup. The default is now to use Athena, but the $ARLO_ALGORITHM environmental variable can be used to select an algorithm at run time. E.g.: ARLO_ALGORITHM=bravo ./run-dev.sh N.B.: to avoid have to add too much other logic before we decide on the best way to integrate this, we simply conditionally replace bravo.bravo_sample_sizes with athena_sample_sizes: if ALGORITHM == "athena": bravo_sample_sizes = athena_sample_sizes Also catch up with API updates in athena repo. Switch to minerva, adapt to Athena api changes FIXME: bravo tests still broken Need to check the minerva test results. Temp README changes; logging setup; more tests Temp: run black, note issues Resolve lint, typing errors; fstring logging Turned off logging-fstring-interpolation in .pylintrc. I think the possible tiny performance penalty is offset by the readability gains, as noted at pylint-dev/pylint#2354 (comment) Clarify README and auth0.md; fix .pylintrc format Add athena from git to Pipfile Note changes in Pipfile.lock - not sure if you want the rest of the packages to be updated, or to have specific version numbers. Add logging during startup Fix typo, get node, cli buildpacks to build Specify Heroku version python-3.7.8 in runtime.txt Fix Pipfile.lock syntax Clean up some logging
feat: add athena_sample_sizes option Add an athena_sample_sizes() shim, to call Athena using the same call signature as bravo_sample_sizes() Calculate Athena p-values Define get_athena_test_statistics() shim patterned after bravo.get_test_statistics() Still following earlier integration work based on ab525ad from 2020-05-05 Move shim to new audit_math location Based on Arlo changes in the meantime. Dirty patch to bravo.py for using athena Allow user to choose audit_math implementation at startup. The default is now to use Athena, but the $ARLO_ALGORITHM environmental variable can be used to select an algorithm at run time. E.g.: ARLO_ALGORITHM=bravo ./run-dev.sh N.B.: to avoid have to add too much other logic before we decide on the best way to integrate this, we simply conditionally replace bravo.bravo_sample_sizes with athena_sample_sizes: if ALGORITHM == "athena": bravo_sample_sizes = athena_sample_sizes Also catch up with API updates in athena repo. Switch to minerva, adapt to Athena api changes FIXME: bravo tests still broken Need to check the minerva test results. Temp README changes; logging setup; more tests Temp: run black, note issues Resolve lint, typing errors; fstring logging Turned off logging-fstring-interpolation in .pylintrc. I think the possible tiny performance penalty is offset by the readability gains, as noted at pylint-dev/pylint#2354 (comment) Clarify README and auth0.md; fix .pylintrc format Add athena from git to Pipfile Note changes in Pipfile.lock - not sure if you want the rest of the packages to be updated, or to have specific version numbers. Add logging during startup Fix typo, get node, cli buildpacks to build Specify Heroku version python-3.7.8 in runtime.txt Fix Pipfile.lock syntax Clean up some logging
The rule is deprecated in favor of using f-strings pylint-dev/pylint#2354
The arguments on why we should do this are well-explained and fully provided in: pylint-dev/pylint#2354 (comment) Signed-off-by: Plamen Dimitrov <[email protected]>
The arguments on why we should do this are well-explained and fully provided in: pylint-dev/pylint#2354 (comment) Signed-off-by: Plamen Dimitrov <[email protected]>
The arguments on why we should do this are well-explained and fully provided in: pylint-dev/pylint#2354 (comment) Signed-off-by: Plamen Dimitrov <[email protected]>
The arguments on why we should do this are well-explained and fully provided in: pylint-dev/pylint#2354 (comment) Signed-off-by: Plamen Dimitrov <[email protected]>
According to the comment here: pylint-dev/pylint#2354 (comment) I think the f-string could be used in logging.
The arguments on why we should do this are well-explained and fully provided in: pylint-dev/pylint#2354 (comment) Signed-off-by: Plamen Dimitrov <[email protected]>
The arguments on why we should do this are well-explained and fully provided in: pylint-dev/pylint#2354 (comment) Signed-off-by: Plamen Dimitrov <[email protected]>
The arguments on why we should do this are well-explained and fully provided in: pylint-dev/pylint#2354 (comment) Signed-off-by: Plamen Dimitrov <[email protected]>
The arguments on why we should do this are well-explained and fully provided in: pylint-dev/pylint#2354 (comment) Signed-off-by: Plamen Dimitrov <[email protected]>
The arguments on why we should do this are well-explained and fully provided in: pylint-dev/pylint#2354 (comment) Signed-off-by: Plamen Dimitrov <[email protected]>
The arguments on why we should do this are well-explained and fully provided in: pylint-dev/pylint#2354 (comment) Signed-off-by: Plamen Dimitrov <[email protected]>
The arguments on why we should do this are well-explained and fully provided in: pylint-dev/pylint#2354 (comment) Signed-off-by: Plamen Dimitrov <[email protected]>
The arguments on why we should do this are well-explained and fully provided in: pylint-dev/pylint#2354 (comment) Signed-off-by: Plamen Dimitrov <[email protected]>
The arguments on why we should do this are well-explained and fully provided in: pylint-dev/pylint#2354 (comment) Signed-off-by: Plamen Dimitrov <[email protected]>
The arguments on why we should do this are well-explained and fully provided in: pylint-dev/pylint#2354 (comment) Signed-off-by: Plamen Dimitrov <[email protected]>
The arguments on why we should do this are well-explained and fully provided in: pylint-dev/pylint#2354 (comment) Signed-off-by: Plamen Dimitrov <[email protected]>
The arguments on why we should do this are well-explained and fully provided in: pylint-dev/pylint#2354 (comment) Signed-off-by: Plamen Dimitrov <[email protected]>
The arguments on why we should do this are well-explained and fully provided in: pylint-dev/pylint#2354 (comment) Signed-off-by: Plamen Dimitrov <[email protected]>
The arguments on why we should do this are well-explained and fully provided in: pylint-dev/pylint#2354 (comment) Signed-off-by: Plamen Dimitrov <[email protected]>
The arguments on why we should do this are well-explained and fully provided in: pylint-dev/pylint#2354 (comment) Signed-off-by: Plamen Dimitrov <[email protected]>
The arguments on why we should do this are well-explained and fully provided in: pylint-dev/pylint#2354 (comment) Signed-off-by: Plamen Dimitrov <[email protected]>
The arguments on why we should do this are well-explained and fully provided in: pylint-dev/pylint#2354 (comment) Signed-off-by: Plamen Dimitrov <[email protected]>
The arguments on why we should do this are well-explained and fully provided in: pylint-dev/pylint#2354 (comment) Signed-off-by: Plamen Dimitrov <[email protected]>
The arguments on why we should do this are well-explained and fully provided in: pylint-dev/pylint#2354 (comment) Signed-off-by: Plamen Dimitrov <[email protected]>
The arguments on why we should do this are well-explained and fully provided in: pylint-dev/pylint#2354 (comment) Signed-off-by: Plamen Dimitrov <[email protected]>
The arguments on why we should do this are well-explained and fully provided in: pylint-dev/pylint#2354 (comment) Signed-off-by: Plamen Dimitrov <[email protected]>
The arguments on why we should do this are well-explained and fully provided in: pylint-dev/pylint#2354 (comment) Signed-off-by: Plamen Dimitrov <[email protected]>
Question
The
logging-fstring-interpolation (W1203)
warning reads:It's not clear to me from that paragraph if its recommended to still use the formatting operator in logging statements, or if f-strings should be used. My understanding is the original intent of W1203 was to prefer the formatting operator over calls to
format()
as then the string interpolation is done lazily. I'm guessing the same is true with f-strings correct? Ie F-strings would not be evaluated lazily, so the same reasons for preferring the formatting operator over.format()
with log statements apply, and as such the same warning is emitted when f-strings are used with log statements.Is that correct?
The text was updated successfully, but these errors were encountered: