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

python: Remove unnecessary f-strings #18821

Merged
merged 2 commits into from
Apr 19, 2023
Merged

Conversation

def-
Copy link
Contributor

@def- def- commented Apr 18, 2023

We could also enable something like pylint's f-string-without-interpolation / W1309

https://pylint.readthedocs.io/en/latest/user_guide/messages/warning/f-string-without-interpolation.html

Motivation

  • This PR refactors existing code.

Checklist

  • This PR has adequate test coverage / QA involvement has been duly considered.
  • This PR has an associated up-to-date design doc, is a design doc (template), or is sufficiently small to not require a design.
  • This PR evolves an existing $T ⇔ Proto$T mapping (possibly in a backwards-incompatible way) and therefore is tagged with a T-proto label.
  • If this PR will require changes to cloud orchestration, there is a companion cloud PR to account for those changes that is tagged with the release-blocker label (example).
  • This PR includes the following user-facing behavior changes:

@def- def- requested a review from a team as a code owner April 18, 2023 17:02
@nrainer-materialize
Copy link
Contributor

+1 for enabling the linter rule

Copy link
Contributor

@philip-stoev philip-stoev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes please enable the linter rule -- if you felt strong enough about this to go through the existing codebase and fix stuff, then we should keep enforcing it going forward.

@def-
Copy link
Contributor Author

def- commented Apr 19, 2023

It was just a quick grep after I noticed it a few times randomly before.

@def-
Copy link
Contributor Author

def- commented Apr 19, 2023

New commit with the linter rule added.

@def- def- merged commit b35b301 into MaterializeInc:main Apr 19, 2023
@def- def- deleted the pr-f-strings branch April 19, 2023 12:20
def- added a commit to def-/materialize that referenced this pull request Apr 20, 2023
Forgot to switch the escaped {{}} strings which are sent to testdrive,
follow-up to MaterializeInc#18821
@def- def- mentioned this pull request Apr 20, 2023
5 tasks
def- added a commit to def-/materialize that referenced this pull request Apr 20, 2023
Forgot to switch the escaped {{}} strings which are sent to testdrive,
follow-up to MaterializeInc#18821
def- added a commit to def-/materialize that referenced this pull request Apr 21, 2023
Forgot to switch the escaped {{}} strings which are sent to testdrive,
follow-up to MaterializeInc#18821
@def- def- mentioned this pull request Apr 21, 2023
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants