Skip to content

Commit

Permalink
fixing the requirements-txt-fixer pre-commit#960
Browse files Browse the repository at this point in the history
  • Loading branch information
Jay Sharma committed Sep 27, 2023
1 parent 516a8a2 commit 1196542
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pre_commit_hooks/requirements_txt_fixer.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def append_value(self, value: bytes) -> None:

def fix_requirements(f: IO[bytes]) -> int:
requirements: list[Requirement] = []
before = list(f)
before = list(set(f))
after: list[bytes] = []

before_string = b''.join(before)
Expand Down

0 comments on commit 1196542

Please sign in to comment.