Skip to content

Commit

Permalink
Add precommit config
Browse files Browse the repository at this point in the history
  • Loading branch information
dokempf committed May 17, 2024
1 parent 8ebee91 commit 9e64548
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
14 changes: 14 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: end-of-file-fixer # Ensure existence of newline characters at file ends
- id: check-yaml # Make sure that contained YAML files are well-formed
- id: trailing-whitespace # Trim trailing whitespace of all sorts
- id: check-added-large-files # Apply a file size limit of 500kB
- id: mixed-line-ending # Ensure consistent line endings

- repo: https://github.com/rhysd/actionlint
rev: v1.7.0
hooks:
- id: actionlint # GitHub Actions Workflow linter
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ runs:
sudo make install
cd ..
rm -rf doxygen-${DOXYGEN_VERSION}* # Clean up
- name: "Windows installation"
if: runner.os == 'Windows'
shell: bash
Expand All @@ -35,7 +35,7 @@ runs:
cp * c:\\Windows
cd ..
rm -rf doxygen-${DOXYGEN_VERSION}-windows # Clean up
- name: "MacOS installation"
if: runner.os == 'MacOS'
shell: bash
Expand Down

0 comments on commit 9e64548

Please sign in to comment.