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

Remove duplicated packages #1014

Conversation

vhoulbreque-withings
Copy link
Contributor

@vhoulbreque-withings vhoulbreque-withings commented Feb 21, 2024

This PR removes duplicate package configuration from the requirements.
Fixes #960

a==1
b==2
# comment
a==1

becomes

# comment
a==1
b==2

In case of duplicates, I chose to favor the one with comments to ensure the comments are not deleted.

@vhoulbreque-withings vhoulbreque-withings marked this pull request as ready for review February 21, 2024 13:37
@asottile asottile force-pushed the 960-fix-requirements-txt-fixer-duplicated-elements branch from 03ffb7e to 0d6d0a7 Compare February 25, 2024 17:16
Copy link
Member

@asottile asottile left a comment

Choose a reason for hiding this comment

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

@asottile asottile merged commit aae27b8 into pre-commit:main Feb 25, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

requirements-txt-fixer does not remove duplicated elements
2 participants