-
-
Notifications
You must be signed in to change notification settings - Fork 616
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
Warn about duplicated constraints #1077
Comments
FWIW I'm leaning toward a comment in the generated file rather than just stderr warning, because:
That said, some thoughts against myself:
TBH I preferred all the info in the annotation, I don't mind the diff noise. I wonder if this makes sense, as a package:
This would in the long run be a net-zero change in flag count, and the new EDIT: Especially if warnings of different types are lumped together, it would be necessary for the hypothetical |
Yeah, I guess it is "not very" bad. The comment leading here, that I should've linked before, was about accidentally parallel-added constraints on |
Here's a start, FWIW. |
It's not quite a duplication from UX POV, see an example of # We support Django>=1.11
django>=1.11
# TODO remove this after Django-2.0 support being added
django<2.0 |
What's the problem this feature will solve?
Whilst developing #1075 to remove line number annotations, the main feedback was that the annotations are useful for detecting duplicated requirements/constraints in a single file. But that requirements humans to read, and removing the line number annotations is best to reduce diff noise when compiling requirements.
Duplicated requirements should always be combinable, and can point to sources of bad assumptions and thus potential bugs if they're in separated parts of the file.
e.g.
can be
Describe the solution you'd like
A warning, or maybe a comment at the bottom of the generated file, about duplicated requirements in a single file.
Alternative Solutions
Just don't warn
The text was updated successfully, but these errors were encountered: