question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature Request: Exclude lines from conversion with a comment

See original GitHub issue

It would be nice if line/block could be excluded from upgrading with a comment like # nopyupgrade or # start nopyupgrade in order to keep specific lines: i.e. dict(foo="bar") when intended.

We are discussion to include pyupgrade in our teams pipeline but some team mate made this an requirement.

Would / Will this be possible in the future?

Have a glimps look in the source I don’t see how to introduce this easily 😕

Any thoughts?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
asottilecommented, Nov 30, 2021

no sorry, pyupgrade is an opinionated tool if you don’t like the opinions don’t use it

the whole point is that there’s no discussions

0reactions
asottilecommented, Jan 11, 2022

you’re looking for --keep-runtime-typing

Read more comments on GitHub >

github_iconTop Results From Across the Web

Commenting on a pull request - GitHub Docs
To reply to an existing line comment, you'll need to navigate to the comment on either the Conversation tab or Files changed tab...
Read more >
How to select/comment on a range of lines in github pull ...
Click and drag to comment on multiple lines in a pull request diff. ✨ ... Update Github has released a new feature where...
Read more >
Commenting on a pull request | Bitbucket Data Center and ...
To create a pull request suggestion on a single line of code: In the comment dialog, click . Type your suggestion in the...
Read more >
Review a merge request - GitLab Docs
Go to the merge request you want to review, and select the Changes tab. · Select the comment icon in the gutter to...
Read more >
Ignore all email messages in a conversation - Microsoft Support
You can keep unwanted conversations out of your Inbox by using the Ignore Conversation feature. Ignore Conversation removes all messages related to the ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found