1
0
mirror of https://github.com/gitattributes/gitattributes.git synced 2025-01-22 08:18:50 -05:00

Merge pull request #121 from jimustafa/master

add `pre-commit` workflow for simple commit/PR checking
This commit is contained in:
Alexander Karatarakis 2020-11-11 12:32:09 +01:00 committed by GitHub
commit 5f49cd9141
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 24 additions and 3 deletions

14
.github/workflows/pre-commit.yaml vendored Normal file
View File

@ -0,0 +1,14 @@
name: pre-commit
on:
pull_request:
push:
branches: [master]
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: pre-commit/action@v2.0.0

7
.pre-commit-config.yaml Normal file
View File

@ -0,0 +1,7 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.3.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace

View File

@ -1,7 +1,7 @@
# A Collection of Useful .gitattributes Templates
Similarly to the [`.gitignore` Templates][gt], we're trying to build
templates for `.gitattributes`.
Similarly to the [`.gitignore` Templates][gt], we're trying to build
templates for `.gitattributes`.
`Common.gitattributes` contains general exclusions that may apply to any project.
Consider including them if they are applicable to your project.

View File

@ -121,4 +121,4 @@
*.unity linguist-generated
# Spine export file for Unity
*.skel.bytes binary
*.skel.bytes binary