Skip to content

Commit bdf753e

Browse files
authored
chore: set gitattributes for normalizing line endings (ietf-tools#8245)
* chore: add proper .gitattributes * chore: normalize file endings * chore: fix .gitattributes * chore: normalize file endings (2)
1 parent 3c42d98 commit bdf753e

10 files changed

Lines changed: 785 additions & 507 deletions

File tree

.gitattributes

Lines changed: 280 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,280 @@
1-
/.yarn/releases/** binary
2-
/.yarn/plugins/** binary
1+
# Auto detect text files and perform LF normalization
2+
* text=auto
3+
4+
# ---------------------------------------------------
5+
# Python Projects
6+
# ---------------------------------------------------
7+
8+
# Source files
9+
*.pxd text diff=python
10+
*.py text diff=python
11+
*.py3 text diff=python
12+
*.pyw text diff=python
13+
*.pyx text diff=python
14+
*.pyz text diff=python
15+
*.pyi text diff=python
16+
17+
# Binary files
18+
*.db binary
19+
*.p binary
20+
*.pkl binary
21+
*.pickle binary
22+
*.pyc binary export-ignore
23+
*.pyo binary export-ignore
24+
*.pyd binary
25+
26+
# Jupyter notebook
27+
*.ipynb text eol=lf
28+
29+
# ---------------------------------------------------
30+
# Web Projects
31+
# ---------------------------------------------------
32+
33+
# Source code
34+
*.bash text eol=lf
35+
*.bat text eol=crlf
36+
*.cmd text eol=crlf
37+
*.coffee text
38+
*.css text diff=css
39+
*.htm text diff=html
40+
*.html text diff=html
41+
*.inc text
42+
*.ini text
43+
*.js text
44+
*.mjs text
45+
*.cjs text
46+
*.json text
47+
*.jsx text
48+
*.less text
49+
*.ls text
50+
*.map text -diff
51+
*.od text
52+
*.onlydata text
53+
*.php text diff=php
54+
*.pl text
55+
*.ps1 text eol=crlf
56+
*.py text diff=python
57+
*.rb text diff=ruby
58+
*.sass text
59+
*.scm text
60+
*.scss text diff=css
61+
*.sh text eol=lf
62+
.husky/* text eol=lf
63+
*.sql text
64+
*.styl text
65+
*.tag text
66+
*.ts text
67+
*.tsx text
68+
*.xml text
69+
*.xhtml text diff=html
70+
71+
# Docker
72+
Dockerfile text
73+
74+
# Documentation
75+
*.ipynb text eol=lf
76+
*.markdown text diff=markdown
77+
*.md text diff=markdown
78+
*.mdwn text diff=markdown
79+
*.mdown text diff=markdown
80+
*.mkd text diff=markdown
81+
*.mkdn text diff=markdown
82+
*.mdtxt text
83+
*.mdtext text
84+
*.txt text
85+
AUTHORS text
86+
CHANGELOG text
87+
CHANGES text
88+
CONTRIBUTING text
89+
COPYING text
90+
copyright text
91+
*COPYRIGHT* text
92+
INSTALL text
93+
license text
94+
LICENSE text
95+
NEWS text
96+
readme text
97+
*README* text
98+
TODO text
99+
100+
# Templates
101+
*.dot text
102+
*.ejs text
103+
*.erb text
104+
*.haml text
105+
*.handlebars text
106+
*.hbs text
107+
*.hbt text
108+
*.jade text
109+
*.latte text
110+
*.mustache text
111+
*.njk text
112+
*.phtml text
113+
*.pug text
114+
*.svelte text
115+
*.tmpl text
116+
*.tpl text
117+
*.twig text
118+
*.vue text
119+
120+
# Configs
121+
*.cnf text
122+
*.conf text
123+
*.config text
124+
.editorconfig text
125+
.env text
126+
.gitattributes text
127+
.gitconfig text
128+
.htaccess text
129+
*.lock text -diff
130+
package.json text eol=lf
131+
package-lock.json text eol=lf -diff
132+
pnpm-lock.yaml text eol=lf -diff
133+
.prettierrc text
134+
yarn.lock text -diff
135+
*.toml text
136+
*.yaml text
137+
*.yml text
138+
browserslist text
139+
Makefile text
140+
makefile text
141+
# Fixes syntax highlighting on GitHub to allow comments
142+
tsconfig.json linguist-language=JSON-with-Comments
143+
144+
# Heroku
145+
Procfile text
146+
147+
# Graphics
148+
*.ai binary
149+
*.bmp binary
150+
*.eps binary
151+
*.gif binary
152+
*.gifv binary
153+
*.ico binary
154+
*.jng binary
155+
*.jp2 binary
156+
*.jpg binary
157+
*.jpeg binary
158+
*.jpx binary
159+
*.jxr binary
160+
*.pdf binary
161+
*.png binary
162+
*.psb binary
163+
*.psd binary
164+
*.svg text
165+
*.svgz binary
166+
*.tif binary
167+
*.tiff binary
168+
*.wbmp binary
169+
*.webp binary
170+
171+
# Audio
172+
*.kar binary
173+
*.m4a binary
174+
*.mid binary
175+
*.midi binary
176+
*.mp3 binary
177+
*.ogg binary
178+
*.ra binary
179+
180+
# Video
181+
*.3gpp binary
182+
*.3gp binary
183+
*.as binary
184+
*.asf binary
185+
*.asx binary
186+
*.avi binary
187+
*.fla binary
188+
*.flv binary
189+
*.m4v binary
190+
*.mng binary
191+
*.mov binary
192+
*.mp4 binary
193+
*.mpeg binary
194+
*.mpg binary
195+
*.ogv binary
196+
*.swc binary
197+
*.swf binary
198+
*.webm binary
199+
200+
# Archives
201+
*.7z binary
202+
*.gz binary
203+
*.jar binary
204+
*.rar binary
205+
*.tar binary
206+
*.zip binary
207+
208+
# Fonts
209+
*.ttf binary
210+
*.eot binary
211+
*.otf binary
212+
*.woff binary
213+
*.woff2 binary
214+
215+
# Executables
216+
*.exe binary
217+
*.pyc binary
218+
# Prevents massive diffs caused by vendored, minified files
219+
**/.yarn/releases/** binary
220+
**/.yarn/plugins/** binary
221+
222+
# RC files (like .babelrc or .eslintrc)
223+
*.*rc text
224+
225+
# Ignore files (like .npmignore or .gitignore)
226+
*.*ignore text
227+
228+
# Prevents massive diffs from built files
229+
dist/* binary
230+
231+
# ---------------------------------------------------
232+
# Common
233+
# ---------------------------------------------------
234+
235+
# Documents
236+
*.bibtex text diff=bibtex
237+
*.doc diff=astextplain
238+
*.DOC diff=astextplain
239+
*.docx diff=astextplain
240+
*.DOCX diff=astextplain
241+
*.dot diff=astextplain
242+
*.DOT diff=astextplain
243+
*.pdf diff=astextplain
244+
*.PDF diff=astextplain
245+
*.rtf diff=astextplain
246+
*.RTF diff=astextplain
247+
*.md text diff=markdown
248+
*.mdx text diff=markdown
249+
*.tex text diff=tex
250+
*.adoc text
251+
*.textile text
252+
*.mustache text
253+
*.csv text eol=crlf
254+
*.tab text
255+
*.tsv text
256+
*.txt text
257+
*.sql text
258+
*.epub diff=astextplain
259+
260+
# Text files where line endings should be preserved
261+
*.patch -text
262+
263+
# ---------------------------------------------------
264+
# Vzic specific
265+
# ---------------------------------------------------
266+
267+
*.pl text diff=perl
268+
*.pm text diff=perl
269+
270+
# C/C++
271+
*.c text diff=cpp
272+
*.cc text diff=cpp
273+
*.cxx text diff=cpp
274+
*.cpp text diff=cpp
275+
*.cpi text diff=cpp
276+
*.c++ text diff=cpp
277+
*.hpp text diff=cpp
278+
*.h text diff=cpp
279+
*.h++ text diff=cpp
280+
*.hh text diff=cpp
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# Copyright The IETF Trust 2007-2019, All Rights Reserved
2-
# -*- coding: utf-8 -*-
3-
4-
from ietf import __version__
5-
from ietf.settings import * # pyflakes:ignore
6-
7-
STATIC_URL = "https://static.ietf.org/dt/%s/"%__version__
8-
STATIC_ROOT = os.path.abspath(BASE_DIR + "/../static/")
1+
# Copyright The IETF Trust 2007-2019, All Rights Reserved
2+
# -*- coding: utf-8 -*-
3+
4+
from ietf import __version__
5+
from ietf.settings import * # pyflakes:ignore
6+
7+
STATIC_URL = "https://static.ietf.org/dt/%s/"%__version__
8+
STATIC_ROOT = os.path.abspath(BASE_DIR + "/../static/")

dev/tests/docker-compose.debug.yml

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
1-
# This docker-compose replicates the test workflow happening on GitHub during a PR / build check.
2-
# To be used from the debug.sh script.
3-
4-
version: '3.8'
5-
6-
services:
7-
app:
8-
image: ghcr.io/ietf-tools/datatracker-app-base:latest
9-
command: -f /dev/null
10-
working_dir: /__w/datatracker/datatracker
11-
entrypoint: tail
12-
hostname: app
13-
volumes:
14-
- /var/run/docker.sock:/var/run/docker.sock
15-
environment:
16-
CI: 'true'
17-
GITHUB_ACTIONS: 'true'
18-
HOME: /github/home
19-
deploy:
20-
resources:
21-
limits:
22-
cpus: '2'
23-
memory: '7GB'
24-
25-
db:
26-
image: ghcr.io/ietf-tools/datatracker-db:latest
27-
restart: unless-stopped
28-
volumes:
29-
- postgresdb-data:/var/lib/postgresql/data
30-
31-
volumes:
32-
postgresdb-data:
1+
# This docker-compose replicates the test workflow happening on GitHub during a PR / build check.
2+
# To be used from the debug.sh script.
3+
4+
version: '3.8'
5+
6+
services:
7+
app:
8+
image: ghcr.io/ietf-tools/datatracker-app-base:latest
9+
command: -f /dev/null
10+
working_dir: /__w/datatracker/datatracker
11+
entrypoint: tail
12+
hostname: app
13+
volumes:
14+
- /var/run/docker.sock:/var/run/docker.sock
15+
environment:
16+
CI: 'true'
17+
GITHUB_ACTIONS: 'true'
18+
HOME: /github/home
19+
deploy:
20+
resources:
21+
limits:
22+
cpus: '2'
23+
memory: '7GB'
24+
25+
db:
26+
image: ghcr.io/ietf-tools/datatracker-db:latest
27+
restart: unless-stopped
28+
volumes:
29+
- postgresdb-data:/var/lib/postgresql/data
30+
31+
volumes:
32+
postgresdb-data:

0 commit comments

Comments
 (0)