Skip to content

chore: add .editorconfig that keeps Markdown hard line breaks - #92

Merged
drevendev merged 1 commit into
masterfrom
beautifulrepo/editorconfig-20261022
Oct 22, 2026
Merged

drevendev merged 1 commit into
masterfrom
beautifulrepo/editorconfig-20261022

Conversation

@drevendev

Copy link
Copy Markdown
Owner

Reader problem and change

.gitattributes fixes line endings in Git, but editors still disagree on final newlines, indentation and trailing whitespace. This PR adds .editorconfig with these settings:

  • UTF-8, LF, final newline, spaces;
  • 4-space indents for Python, 2-space for YAML/JSON;
  • trailing whitespace trimmed everywhere except Markdown. README's Principles section ends four lines with two spaces, which is a Markdown hard line break, and blanket trimming would silently change how it renders.

tests/test_editorconfig.py guards both the exception and an actual README hard break.

Closes #60. Borrowed from Devostasis and HungryCrab (epic #84).

Verification

  • There was no existing trailing whitespace or tab indentation in *.py, *.yml or *.json, so no files change.
  • python -m unittest discover -s tests passes.

🤖 Generated with Claude Code

@drevendev
drevendev force-pushed the beautifulrepo/editorconfig-20261022 branch from 330a7c0 to 7a2e9a0 Compare October 22, 2026 17:27
@drevendev
drevendev merged commit 9c044e0 into master Oct 22, 2026
6 checks passed
@drevendev
drevendev deleted the beautifulrepo/editorconfig-20261022 branch October 22, 2026 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add an .editorconfig

1 participant