Skip to content

chore: add .editorconfig for consistent formatting#189

Open
tykoo-chen wants to merge 1 commit intokarpathy:masterfrom
tykoo-chen:chore/editorconfig
Open

chore: add .editorconfig for consistent formatting#189
tykoo-chen wants to merge 1 commit intokarpathy:masterfrom
tykoo-chen:chore/editorconfig

Conversation

@tykoo-chen
Copy link

What

Add .editorconfig file for consistent code formatting across editors.

Why

When multiple contributors (humans and AI agents) edit files, formatting can drift. EditorConfig is supported by most editors out of the box and ensures:

  • Consistent 4-space indentation
  • LF line endings (cross-platform)
  • UTF-8 encoding
  • No trailing whitespace (except in markdown where it matters)
  • Files end with newline

Details

Standard editor config to maintain:
- 4-space indentation for Python
- LF line endings
- UTF-8 encoding
- Trailing whitespace trimming (except markdown)
- Final newline
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.

1 participant