diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..007f685 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,35 @@ +root = true + +[{*,.*}] +charset = utf-8 +indent_style = space +insert_final_newline = true +trim_trailing_whitespace = true + +[*.sh] +end_of_line = lf + +[{*.bat,*.cmd}] +end_of_line = crlf + +[*.go] +# gofmt defaults to LF for all the platforms: https://github.com/golang/go/issues/16355 +end_of_line = lf + +[*.md] +# Trailing whitespace is important in Markdown (they distinguish a new line from a new paragraph) +eclint_indent_style = unset +trim_trailing_whitespace = false + +[{go.mod,go.sum,*.go,.gitmodules}] +indent_size = 4 +indent_style = tab + +[Dockerfile] +indent_size = 4 + +[*.py] +profile = black + +[*.sh] +indent_size = 4 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..569df3f --- /dev/null +++ b/.gitattributes @@ -0,0 +1,126 @@ +############################### +# Qubership common # +############################### +.editorconfig text +.flake8 text +.gitattributes text +.gitignore text +.helmignore text +.prettierignore text + +*.env text eol=lf +*.json text +*.md text +*.mod text +*.robot text +*.sum text +*.tpl text +*.txt text +*.yaml text +*.yml text + +LICENSE text +Dockerfile text + +/CHANGELOG.md merge=union +/contributors.json merge=union +/CODE-OF-CONDUCT.md text +/CONTRIBUTING.md text +/README.md text +/SECURITY.md text + +############################### +# Git Line Endings # +############################### + +# Set default behaviour to automatically normalize line endings. +* text=auto + + +# Force batch scripts to always use CRLF line endings so that if a repo is accessed +# in Windows via a file share from Linux, the scripts will work. +*.{cmd,[cC][mM][dD]} text eol=crlf +*.{bat,[bB][aA][tT]} text eol=crlf + +# Force bash scripts to always use LF line endings so that if a repo is accessed +# in Unix via a file share from Windows, the scripts will work. +*.sh text eol=lf +# gofmt defaults to LF for all the platforms: https://github.com/golang/go/issues/16355 +*.go text eol=lf + +########################################## +# Basic .gitattributes for a Java repo.# +########################################## + +# Java sources +*.java text diff=java +*.kt text diff=kotlin +*.groovy text diff=java +*.scala text diff=java +*.gradle text diff=java +*.gradle.kts text diff=kotlin + +# These files are text and should be normalized (Convert crlf => lf) +*.css text diff=css +*.scss text diff=css +*.sass text +*.df text +*.htm text diff=html +*.html text diff=html +*.js text +*.mjs text +*.cjs text +*.jsp text +*.jspf text +*.jspx text +*.properties text +*.tld text +*.tag text +*.tagx text +*.xml text + +# These files are binary and should be left untouched +# (binary is a macro for -text -diff) +*.class binary +*.dll binary +*.ear binary +*.jar binary +*.so binary +*.war binary +*.jks binary + +# Common build-tool wrapper scripts ('.cmd' versions are handled by 'Common.gitattributes') +mvnw text eol=lf +gradlew text eol=lf + +########################################## +# Basic .gitattributes for a python repo.# +########################################## + +# Source files +# ============ +*.pxd text diff=python +*.py text diff=python +*.py3 text diff=python +*.pyw text diff=python +*.pyx text diff=python +*.pyz text diff=python +*.pyi text diff=python + +# Binary files +# ============ +*.db binary +*.p binary +*.pkl binary +*.pickle binary +*.pyc binary export-ignore +*.pyo binary export-ignore +*.pyd binary + +# Jupyter notebook +*.ipynb text eol=lf + +# Note: .db, .p, and .pkl files are associated +# with the python modules ``pickle``, ``dbm.*``, +# ``shelve``, ``marshal``, ``anydbm``, & ``bsddb`` +# (among others).