Skip to content

Commit

Permalink
New Release
Browse files Browse the repository at this point in the history
  • Loading branch information
wemogy-admin authored Apr 18, 2024
2 parents d50d57d + cb767a8 commit 245b499
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/style.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,18 @@ jobs:
name: Check Coding Style
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0

# Check EditorConfig
- name: Install eclint
run: sudo npm install -g eclint
- name: Check EditorConfig style
run: eclint check $(git ls-files)

# Check Commit Messages
- name: Install pre-commit
run: pip install pre-commit
- name: Check commits
run: pre-commit run --hook-stage manual
3 changes: 3 additions & 0 deletions .gitlint
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[general]
ignore = body-is-missing
contrib = contrib-title-conventional-commits
26 changes: 26 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
default_install_hook_types:
- pre-commit
- pre-push
- commit-msg

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- name: Check, that no large files have been committed
id: check-added-large-files

- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
rev: '2.7.1'
hooks:
- name: Check EditorConfig
id: editorconfig-checker
alias: ec

- repo: https://github.com/jorisroovers/gitlint
rev: "v0.19.1"
hooks:
- name: Lint commit messages
id: gitlint
- id: gitlint-ci
args: ['--commits', 'origin/main..HEAD']

0 comments on commit 245b499

Please sign in to comment.