diff --git a/.github/workflows/pre-commit.yaml b/.github/workflows/pre-commit.yaml new file mode 100644 index 0000000..7233479 --- /dev/null +++ b/.github/workflows/pre-commit.yaml @@ -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 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..500f638 --- /dev/null +++ b/.pre-commit-config.yaml @@ -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 diff --git a/README.md b/README.md index dc93749..10a9cdf 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/Unity.gitattributes b/Unity.gitattributes index 8d5fed6..8768ffc 100644 --- a/Unity.gitattributes +++ b/Unity.gitattributes @@ -121,4 +121,4 @@ *.unity linguist-generated # Spine export file for Unity -*.skel.bytes binary \ No newline at end of file +*.skel.bytes binary