-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Replace flynt checker with pylint consider-using-f-string #6171
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
Labels
kind/health
For CI/testing/release process/refactoring/technical debt items
triage/accepted
A consensus emerged that this bug report, feature request, or other action should be worked on
Comments
|
cirq-sync: accepted lets remove flynt and use the new dependency instead |
pavoljuhas
added a commit
that referenced
this issue
Jul 12, 2023
- pylint - enable `consider-using-f-string` check - Test package metadata with numpy rather than flynt - Fix CI complains on test coverage - fix markup for ignoring coverage - Temporarily disable consider-using-f-string pylint and add TODO-s to fix later - Format touched files with black-23.3.0 Partially fixes #6171 --------- Co-authored-by: Tanuj Khattar <[email protected]>
pavoljuhas
added a commit
that referenced
this issue
Jul 17, 2023
Convert all `%` and `str.format()` expressions or disable pylint check where `str.format()` is more readable. Partially fixes #6171
pavoljuhas
added a commit
that referenced
this issue
Jul 17, 2023
dev_tools/pr_monitor.py disables |
pavoljuhas
added a commit
that referenced
this issue
Jul 22, 2023
* pr_monitor - convert to f-strings to satisfy pylint consider-using-f-string * clean up some redundant fixed strings concatenations * also pin pytest-cov==3 to unblock CI coverage check which failed because pytest-cov==4.1.0 does not see line hits in a subprocess. Finalizes #6171
harry-phasecraft
pushed a commit
to PhaseCraft/Cirq
that referenced
this issue
Oct 31, 2024
- pylint - enable `consider-using-f-string` check - Test package metadata with numpy rather than flynt - Fix CI complains on test coverage - fix markup for ignoring coverage - Temporarily disable consider-using-f-string pylint and add TODO-s to fix later - Format touched files with black-23.3.0 Partially fixes quantumlib#6171 --------- Co-authored-by: Tanuj Khattar <[email protected]>
harry-phasecraft
pushed a commit
to PhaseCraft/Cirq
that referenced
this issue
Oct 31, 2024
…#6198) Convert all `%` and `str.format()` expressions or disable pylint check where `str.format()` is more readable. Partially fixes quantumlib#6171
harry-phasecraft
pushed a commit
to PhaseCraft/Cirq
that referenced
this issue
Oct 31, 2024
* pr_monitor - convert to f-strings to satisfy pylint consider-using-f-string * clean up some redundant fixed strings concatenations * also pin pytest-cov==3 to unblock CI coverage check which failed because pytest-cov==4.1.0 does not see line hits in a subprocess. Finalizes quantumlib#6171
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
kind/health
For CI/testing/release process/refactoring/technical debt items
triage/accepted
A consensus emerged that this bug report, feature request, or other action should be worked on
Description of the issue
flynt is a tool for converting
%-format
and"{}".format()
strings to Python f-strings.It is used in the check/format-incremental script and also as an example for package metadata reading in a unit tests here.
The same functionality can be provided by the consider-using-f-string pylint rule.
I propose to use pylint rule instead of pylint and also replace flynt usage in the unit test with a more common package.
Cirq version
1.2.0.dev at 3f8d83a
The text was updated successfully, but these errors were encountered: