Skip to content
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

Bump flynt from 0.52 to 0.77 #549

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

dependabot[bot]
Copy link

@dependabot dependabot bot commented on behalf of github Nov 28, 2022

Bumps flynt from 0.52 to 0.77.

Changelog

Sourced from flynt's changelog.

v.0.77

[Contributed by Aarni Koskela] --transform-joins (-tj) will transform string join operations on static operands to an f-string.

[Contributed by Aarni Koskela] Fix handling of escaped unicode characters (#55 and #104).

[Contributed by Aarni Koskela] Add flags to disable percent statement / .format statement transformations: --no-tp, --no-transform-percent and --no-tf, --no-transform-format.

v.0.71

Added support to configuration via file. For per-project configuration, use pyproject.toml file, [tool.flynt] section. for global config, use ~/.config/flynt.toml file.

v0.70

[Contributed by Ryan Barrett] Aggressive mode enables transforming expressions where same variable is used twice, e.g. """a = '%(?)s %(?)s' % {'?': var}""" to """a = f'{var} {var}'"""

v.0.47

  • added the changelog.
  • added -a / --aggressive flag to enable risky (with behaviour potentially different from original) transformations. This currently includes "%5" % var -> f"{var:5}" transformation. Demo of unsafe behavior:
print( "|%5s|%5d|%5d|" % ('111', 999_999, 77)  )
print( "|%5d|%5d|%5d|" % (111, 999_999, 77)  )

print( "|{:5s}|{:5}|{:5}|".format('111', 999_999, 77) ) print( f"|{111:5}|{999_999:5}|{77:5}|" )

""" output: | 111|999999| 77| | 111|999999| 77| |111 |999999| 77| << behavior differs when printing a string | 111|999999| 77| """

  • %d format specifier is transformed only in --aggressive mode, and will result in "%d" % var -> f"{int(var)}". See ikamensh/flynt#59.

  • added short versions to other flags:

--line-length, -l
</tr></table> 

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [flynt](https://github.com/ikamensh/flynt) from 0.52 to 0.77.
- [Release notes](https://github.com/ikamensh/flynt/releases)
- [Changelog](https://github.com/ikamensh/flynt/blob/master/CHANGELOG.md)
- [Commits](ikamensh/flynt@0.52...0.77)

---
updated-dependencies:
- dependency-name: flynt
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Nov 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file python Pull requests that update Python code
Projects
None yet
0 participants