Skip to content

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

@mayty

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

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions