Skip to content

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jun 10, 2023

Bumps flynt from 0.76 to 0.78.

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)

@dependabot dependabot bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Jun 10, 2023
@codecov
Copy link

codecov bot commented Jun 10, 2023

Codecov Report

Merging #224 (ec24924) into master (1a32d3b) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #224   +/-   ##
=======================================
  Coverage   92.59%   92.59%           
=======================================
  Files          13       13           
  Lines         432      432           
  Branches       66       66           
=======================================
  Hits          400      400           
  Misses         22       22           
  Partials       10       10           

Bumps [flynt](https://github.com/ikamensh/flynt) from 0.76 to 0.78.
- [Changelog](https://github.com/ikamensh/flynt/blob/master/CHANGELOG.md)
- [Commits](ikamensh/flynt@0.76...0.78)

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

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot force-pushed the dependabot/pip/flynt-0.78 branch from 21486d2 to ec24924 Compare June 10, 2023 19:15
@p1c2u p1c2u merged commit 2c487c9 into master Jun 10, 2023
@p1c2u p1c2u deleted the dependabot/pip/flynt-0.78 branch June 10, 2023 19:22
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
Development

Successfully merging this pull request may close these issues.

1 participant