Skip to content
Permalink
Browse files

sane string formating

  • Loading branch information...
ikkamens
ikkamens committed Aug 24, 2019
1 parent 22385bf commit c7053ce724e04903f06cc1f536725e347c5086a1
Showing with 5 additions and 7 deletions.
  1. +1 −1 .pre-commit-config.yaml
  2. +3 −5 src/flynt/cli_messages.py
  3. +1 −1 test/test_lexer.py
@@ -3,7 +3,7 @@ repos:
rev: 19.3b0
hooks:
- id: black
language_version: python3.7
language_version: python3
exclude: test/integration/actual_out|test/integration/actual_out_single_line|test/integration/expected_out|test/integration/expected_out_single_line|test/integration/samples_in
- repo: https://github.com/PyCQA/flake8
rev: 3.7.8
@@ -10,11 +10,9 @@

message_suggest_pyup = (
f"{Style.DIM}\nYour code is now compatible only with python versions 3.6 or higher."
f" Would you "
f"like to remove legacy expressions"
f"and get a bunch of best practice changes for free?"
f" Run {Style.BRIGHT}flynt --upgrade [file(s) and/or folder(s)] {Style.RESET_ALL}"
f"{Style.DIM} to run pyupgrade on all .py files. "
f" Would you like to remove legacy expressions and get a bunch of best practice "
f"changes for free? Run {Style.BRIGHT}flynt --upgrade [file(s) and/or folder(s)]"
f" {Style.RESET_ALL}{Style.DIM} to run pyupgrade on all .py files. "
f"See full list of upgradable expressions at:"
f" {pyup_features_link}. {credit}\n{Style.RESET_ALL}"
)
@@ -139,7 +139,7 @@ def test_not_implicit_concat():


def test_line_continuation():
generator = lexer.get_fstringify_chunks(line_continuation)
generator = split.get_fstringify_chunks(line_continuation)
assert len(list(generator)) == 1


0 comments on commit c7053ce

Please sign in to comment.
You can’t perform that action at this time.