KotlinIsland / KotlinIsland/basedmypy
detect existing line endings when writing baseline.json
- Dominant language
- Python
- Stars
- 202
- Forks
- 6
- PR merge metrics
- No merged PRs in 30d
Description
It can be frustrating when you have a git configuration to use different line endings to you system default, and mypy write baseline with system line endings instead of git ones. This causes vscode to have an error popup saying that the line endings are incorrect. For this change we will attempt to detect the existing line endings in the baseline file and use that when re-writing.
Contributor guide
Research direction
Start by locating the code that rewrites baseline.json and inspect how it currently chooses line endings. Reproduce the mismatch with a repository using non-system Git line endings, then verify that rewriting baseline.json preserves the existing file's line-ending style.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100