root = true

[*]
end_of_line = lf

# YAML, JSON, TOML files
[*.{yaml,yml,json,toml}]
indent_style = space
indent_size = 2

# Shell scripts
[*.{sh,sbatch}]
indent_style = space
indent_size = 4

[.githooks/pre-commit]
indent_style = space
indent_size = 4

[*.bat]
end_of_line = crlf
indent_style = space
indent_size = 4

# C/C++ source files
[*.{cpp,hpp,c,h}]
indent_style = space
indent_size = 4
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

# Python source files
[*.py]
indent_style = space
indent_size = 4

# CMakeLists.txt files
[**CMakeLists.txt]
indent_style = space
indent_size = 4

[./CMakeLists.txt]
indent_style = space
indent_size = 4
