Enforce CRLF line endings in pre-commit

- Update pre-commit hooks to 2.1.0
master
Hugo Locurcio 2019-03-01 21:31:21 +01:00
parent e42f3225f1
commit 8e55691bea
No known key found for this signature in database
GPG Key ID: 39E8F8BE30B0A49C
6 changed files with 34 additions and 42 deletions

View File

@ -1,9 +1,5 @@
# EditorConfig (is awesome): http://EditorConfig.org
# * top-most EditorConfig file
root = true
# default style settings
[*]
charset = utf-8
end_of_line = crlf
@ -12,14 +8,8 @@ indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
[*.{bat,cmd,[Bb][Aa][Tt],[Cc][Mm][Dd]]
# DOS/Win *requires* BAT/CMD files to have CRLF newlines
end_of_line = crlf
[[Mm]akefile{,.*}]
# TAB-style indentation
indent_style = tab
[*.yml]
end_of_line = lf
[*.{yml,yaml}]
indent_size = 2

View File

@ -1,7 +1,9 @@
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.0.0
hooks:
- id: check-json
- id: end-of-file-fixer
- id: mixed-line-ending
- id: trailing-whitespace
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.1.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- id: mixed-line-ending
args: [--fix=crlf]

View File

@ -47,4 +47,4 @@
}
}
}
}
}

View File

@ -39,4 +39,4 @@
}
}
}
}
}

View File

@ -1,21 +1,21 @@
{
"homepage": "http://pychess.org/",
"description": "A chess client for Linux and Windows",
"license": "GPL-3.0",
"version": "0.99.4",
"url": "https://github.com/pychess/pychess/releases/download/0.99.4/pychess-0.99.4-win32.msi",
"hash": "aa4464cceb06686d657d25d7de2e14f2de84b6f3d7511c1bcd45dbcfa570e55d",
"bin": "pychess.exe",
"shortcuts": [
[
"pychess.exe",
"PyChess"
]
],
"checkver": {
"github": "https://github.com/pychess/pychess/"
},
"autoupdate": {
"url": "https://github.com/pychess/pychess/releases/download/$version/pychess-$version-win32.msi"
}
}
{
"homepage": "http://pychess.org/",
"description": "A chess client for Linux and Windows",
"license": "GPL-3.0",
"version": "0.99.4",
"url": "https://github.com/pychess/pychess/releases/download/0.99.4/pychess-0.99.4-win32.msi",
"hash": "aa4464cceb06686d657d25d7de2e14f2de84b6f3d7511c1bcd45dbcfa570e55d",
"bin": "pychess.exe",
"shortcuts": [
[
"pychess.exe",
"PyChess"
]
],
"checkver": {
"github": "https://github.com/pychess/pychess/"
},
"autoupdate": {
"url": "https://github.com/pychess/pychess/releases/download/$version/pychess-$version-win32.msi"
}
}

View File

@ -19,4 +19,4 @@
"url": "https://github.com/kduske/TrenchBroom/releases/download/v$version/TrenchBroom-Win32-v$version-Release.7z"
},
"depends": "extras/vcredist2015"
}
}