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.

Doing a soft comparison with --required-version instead of a hard one.

See original GitHub issue

Is your feature request related to a problem? Please describe.

Since Black just made it as stable, it would be nice to be able to set the --required-version argument to something else other than a strict equality. For instance, something like 22 would encompass 22.1.0, 22.1.1, 22.2.0, etc.

Describe the solution you’d like

The solution would essentially be to modify this line to a more soft comparison: https://github.com/psf/black/blob/d038a24ca200da9dacc1dcb05090c9e5b45b7869/src/black/__init__.py#L477

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
ichard26commented, Jan 30, 2022

Oh, by the way, you can use special keywords in the PR description so GitHub will automatically close an issue upon merge. You can read more here: https://docs.github.com/en/github/managing-your-work-on-github/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword. This makes sure any issue that should be closed are in fact closed (and I won’t have to go proactively hunt for such issues!), keeping our very chaotic issue tracker ever so slightly less chaotic and scary 😃

1reaction
JelleZijlstracommented, Jan 30, 2022

Yes, this is a good idea.

I think we only need to accept the year, since that lets you use the stable style. I don’t think 22.1 makes much sense, as we provide no guarantee that releases that happen to fall within the same month are more compatible.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Understanding User Hard Matching and Soft Matching in ...
The actions are performed in the above sequence; Hard matching is attempted, before soft matching is attempted. If there's no match, a new...
Read more >
Frameworks and Weak Linking - Apple Developer
Provides conceptual information and guidelines on how to create a framework.
Read more >
Comparisons - Grammar - Academic Guides - Walden University
The comparative form is used to compare two people, ideas, or things. The superlative form with the word "the" is used to compare...
Read more >
Everything you need to know to migrate from Mule 3 to Mule 4 ...
Big bang: This approach involves cutting over 100% of the traffic to the required version of the application. · Phased cutover: This approach ......
Read more >
US9075661B2 - Placing objects on hosts using hard and soft ...
Objects are placed on hosts using hard constraints and soft constraints. ... to perform work both locally for cloud manager 105 and remotely...
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