Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# EditorConfig -- https://editorconfig.org
root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = space
indent_size = 2

[*.{py,pyi}]
indent_size = 4

[*.{go]]
indent_style = tab

[*.{rs}]
indent_size = 4

[*.md]
trim_trailing_whitespace = false

[Makefile]
indent_style = tab

[*.{sh,bash,zsh}]
indent_size = 2

[*.yaml,ydl]
indent_size = 2

[*.{toml}]
indent_size = 2
72 changes: 72 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
# Auto-detect text files and normalize line endings

* text=auto

# Source code
*.py text diff=python
*.ts text diff=typescript
*.tsx text diff=typescript
*.js text diff=javascript
*.jsx text diff=javascript
*.go text diff=go
*.rs text diff=rust
*.rb text diff=ruby
*.sh text eol=lf diff=bash
*.bash text eol=lf diff=bash
*.zsh text eol=lf diff=bash
*.lua text

# Configuration
*.json text
*.yaml text
*.yml text
*.toml text
*.cfg text
*.ini text
*.conf text
*.env text

# Templates
*.tmpl text
*.j2 text

# Documentation
*.md text diff=markdown
*.txt text
*.rst text

# Web
*.html text diff=html
*.css text diff=css
*.scss text diff=css
*.astro text
*.svg text

# Build / lock files
package-lock.json text -diff
yarn.lock text -diff
Cargo.lock text -diff
poetry.lock text -diff

# Binary
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.ico binary
*.webp binary
*.woff binary
*.woff2 binary
*.ttf binary
*.eot binary
*.pdf binary
*.zip binary
*.gz binary
*.tar binary
*.db binary
*.sqlite binary

# Force LF for scripts
Makefile text eol=lf
Dockerfile text eol=lf
justfile text eol=lf