Skip to content

--remove-unused-ignores doesn't respect existing line endings #1911

Description

@mayty

Describe the Bug

Steps to reproduce:

  1. Have .py files with CRLF line endings
  2. Run pyrefly check --remove-unused-ignores

Expected result:
Line ending on all files remains the same.

Actual result:
Line ending on all .py files changes to LF, even in otherwise unchanged files (for both Windows and Linux).

Sandbox Link

No response

(Only applicable for extension issues) IDE Information

No response

Metadata

Metadata

Assignees

Type

Fields

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions