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
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ trim_trailing_whitespace = true
[*.py]
indent_style = space
indent_size = 4
max_line_length = 99

[*.{yml,yaml,json,toml}]
[*.{yml,yaml,json,toml,css,html,js,jsx,ts,tsx}]
indent_style = space
indent_size = 2

Expand All @@ -20,3 +21,9 @@ indent_style = tab

[*.md]
trim_trailing_whitespace = false

[*.sh]
end_of_line = lf

[*.bat]
end_of_line = crlf
28 changes: 28 additions & 0 deletions {{ cookiecutter.__project_name_kebab_case }}/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Auto detect text files and normalize line endings
* text=auto

# Force LF for text files
*.py text eol=lf
*.sh text eol=lf
*.yml text eol=lf
*.yaml text eol=lf
*.md text eol=lf
*.txt text eol=lf
*.json text eol=lf
*.toml text eol=lf
Dockerfile text eol=lf

# Windows scripts keep CRLF
*.ps1 text eol=crlf
*.bat text eol=crlf

# Binary files
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.ico binary
*.zip binary
*.gz binary
*.tar binary
*.whl binary
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ repos:
hooks:
- id: detect-secrets
args: ['--baseline', '.secrets.baseline']
exclude: '^\.cruft\.json$'
- repo: local
hooks:
{%- if cookiecutter.with_conventional_commits|int %}
Expand Down