Skip to content

Commit c91098b

Browse files
committed
chore: update of common files
1 parent fe379b2 commit c91098b

File tree

2 files changed

+161
-0
lines changed

2 files changed

+161
-0
lines changed

.editorconfig

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
root = true
2+
3+
[{*,.*}]
4+
charset = utf-8
5+
indent_style = space
6+
insert_final_newline = true
7+
trim_trailing_whitespace = true
8+
9+
[*.sh]
10+
end_of_line = lf
11+
12+
[{*.bat,*.cmd}]
13+
end_of_line = crlf
14+
15+
[*.go]
16+
# gofmt defaults to LF for all the platforms: https://github.com/golang/go/issues/16355
17+
end_of_line = lf
18+
19+
[*.md]
20+
# Trailing whitespace is important in Markdown (they distinguish a new line from a new paragraph)
21+
eclint_indent_style = unset
22+
trim_trailing_whitespace = false
23+
24+
[{go.mod,go.sum,*.go,.gitmodules}]
25+
indent_size = 4
26+
indent_style = tab
27+
28+
[Dockerfile]
29+
indent_size = 4
30+
31+
[*.py]
32+
profile = black
33+
34+
[*.sh]
35+
indent_size = 4

.gitattributes

Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
1+
###############################
2+
# Qubership common #
3+
###############################
4+
.editorconfig text
5+
.flake8 text
6+
.gitattributes text
7+
.gitignore text
8+
.helmignore text
9+
.prettierignore text
10+
11+
*.env text eol=lf
12+
*.json text
13+
*.md text
14+
*.mod text
15+
*.robot text
16+
*.sum text
17+
*.tpl text
18+
*.txt text
19+
*.yaml text
20+
*.yml text
21+
22+
LICENSE text
23+
Dockerfile text
24+
25+
/CHANGELOG.md merge=union
26+
/contributors.json merge=union
27+
/CODE-OF-CONDUCT.md text
28+
/CONTRIBUTING.md text
29+
/README.md text
30+
/SECURITY.md text
31+
32+
###############################
33+
# Git Line Endings #
34+
###############################
35+
36+
# Set default behaviour to automatically normalize line endings.
37+
* text=auto
38+
39+
40+
# Force batch scripts to always use CRLF line endings so that if a repo is accessed
41+
# in Windows via a file share from Linux, the scripts will work.
42+
*.{cmd,[cC][mM][dD]} text eol=crlf
43+
*.{bat,[bB][aA][tT]} text eol=crlf
44+
45+
# Force bash scripts to always use LF line endings so that if a repo is accessed
46+
# in Unix via a file share from Windows, the scripts will work.
47+
*.sh text eol=lf
48+
# gofmt defaults to LF for all the platforms: https://github.com/golang/go/issues/16355
49+
*.go text eol=lf
50+
51+
##########################################
52+
# Basic .gitattributes for a Java repo.#
53+
##########################################
54+
55+
# Java sources
56+
*.java text diff=java
57+
*.kt text diff=kotlin
58+
*.groovy text diff=java
59+
*.scala text diff=java
60+
*.gradle text diff=java
61+
*.gradle.kts text diff=kotlin
62+
63+
# These files are text and should be normalized (Convert crlf => lf)
64+
*.css text diff=css
65+
*.scss text diff=css
66+
*.sass text
67+
*.df text
68+
*.htm text diff=html
69+
*.html text diff=html
70+
*.js text
71+
*.mjs text
72+
*.cjs text
73+
*.jsp text
74+
*.jspf text
75+
*.jspx text
76+
*.properties text
77+
*.tld text
78+
*.tag text
79+
*.tagx text
80+
*.xml text
81+
82+
# These files are binary and should be left untouched
83+
# (binary is a macro for -text -diff)
84+
*.class binary
85+
*.dll binary
86+
*.ear binary
87+
*.jar binary
88+
*.so binary
89+
*.war binary
90+
*.jks binary
91+
92+
# Common build-tool wrapper scripts ('.cmd' versions are handled by 'Common.gitattributes')
93+
mvnw text eol=lf
94+
gradlew text eol=lf
95+
96+
##########################################
97+
# Basic .gitattributes for a python repo.#
98+
##########################################
99+
100+
# Source files
101+
# ============
102+
*.pxd text diff=python
103+
*.py text diff=python
104+
*.py3 text diff=python
105+
*.pyw text diff=python
106+
*.pyx text diff=python
107+
*.pyz text diff=python
108+
*.pyi text diff=python
109+
110+
# Binary files
111+
# ============
112+
*.db binary
113+
*.p binary
114+
*.pkl binary
115+
*.pickle binary
116+
*.pyc binary export-ignore
117+
*.pyo binary export-ignore
118+
*.pyd binary
119+
120+
# Jupyter notebook
121+
*.ipynb text eol=lf
122+
123+
# Note: .db, .p, and .pkl files are associated
124+
# with the python modules ``pickle``, ``dbm.*``,
125+
# ``shelve``, ``marshal``, ``anydbm``, & ``bsddb``
126+
# (among others).

0 commit comments

Comments
 (0)