forked from BamPeers/rust-ci-github-actions-workflow
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
475 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# EditorConfig is awesome: https://editorconfig.org | ||
|
||
# top-most EditorConfig file | ||
root = true | ||
|
||
# Unix-style newlines with a newline ending every file | ||
[*] | ||
end_of_line = lf | ||
insert_final_newline = true | ||
|
||
# Matches multiple files with brace expansion notation | ||
# Set default charset | ||
[*.{js,py}] | ||
charset = utf-8 | ||
|
||
# 4 space indentation | ||
[*.py] | ||
indent_style = space | ||
indent_size = 4 | ||
|
||
# Tab indentation (no size specified) | ||
[Makefile] | ||
indent_style = tab | ||
|
||
# Indentation override for all JS under lib directory | ||
[lib/**.js] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
# Matches the exact files either package.json or .travis.yml | ||
[{package.json,.travis.yml}] | ||
indent_style = space | ||
indent_size = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
{ | ||
"noemoji": false, | ||
"scopes": [ | ||
"home", | ||
"accounts", | ||
"ci" | ||
], | ||
"signoff": true, | ||
"skipquestions": null, | ||
"subjectmaxlength": 100, | ||
"types": [ | ||
{ | ||
"emoji": "✨", | ||
"code": ":sparkles:", | ||
"description": "Introduce new features.", | ||
"name": "feat" | ||
}, | ||
{ | ||
"emoji": "🐛", | ||
"code": ":bug:", | ||
"description": "Fix a bug.", | ||
"name": "fix" | ||
}, | ||
{ | ||
"emoji": "📚", | ||
"code": ":books:", | ||
"description": "Documentation change.", | ||
"name": "docs" | ||
}, | ||
{ | ||
"emoji": "🎨", | ||
"code": ":art:", | ||
"description": "Improve structure/format of the code.", | ||
"name": "refactor" | ||
}, | ||
{ | ||
"emoji": "🧹", | ||
"code": ":broom:", | ||
"description": "A chore change.", | ||
"name": "chore" | ||
}, | ||
{ | ||
"emoji": "🧪", | ||
"code": ":test_tube:", | ||
"description": "Add a test.", | ||
"name": "test" | ||
}, | ||
{ | ||
"emoji": "🚑️", | ||
"code": ":ambulance:", | ||
"description": "Critical hotfix.", | ||
"name": "hotfix" | ||
}, | ||
{ | ||
"emoji": "⚰️", | ||
"code": ":coffin:", | ||
"description": "Remove dead code.", | ||
"name": "deprecate" | ||
}, | ||
{ | ||
"emoji": "⚡️", | ||
"code": ":zap:", | ||
"description": "Improve performance.", | ||
"name": "perf" | ||
}, | ||
{ | ||
"emoji": "🚧", | ||
"code": ":construction:", | ||
"description": "Work in progress.", | ||
"name": "wip" | ||
}, | ||
{ | ||
"emoji": "📦", | ||
"code": ":package:", | ||
"description": "Add or update compiled files or packages.", | ||
"name": "package" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
[pre-commit] | ||
parallel = true | ||
|
||
[pre-commit.commands.lint] | ||
run = "just --timestamp lint" | ||
glob = "*.go" | ||
stage_fixed = true | ||
|
||
[pre-commit.commands.format] | ||
run = "just --timestamp format" | ||
glob = "*.go" | ||
stage_fixed = true | ||
|
||
[pre-commit.commands.build] | ||
run = "just --timestamp build" | ||
glob = "*.go" | ||
|
||
[pre-commit.commands.audit] | ||
run = "just --timestamp audit" | ||
|
||
[pre-commit.commands.cog-check] | ||
run = "cog check" | ||
|
||
#[commit-msg.commands.cog-verify] | ||
#run = "cog verify -i '{1}'" | ||
|
||
# Build commit message | ||
[prepare-commit-msg.commands.commitzen] | ||
interactive = true | ||
run = "just --timestamp prepare-commit-msg {1}" | ||
[commit-msg.commands.commitzen.env] | ||
LEFTHOOK = 0 | ||
|
||
# Validate commit messages | ||
[commit-msg.commands.commitzen] | ||
run = "just --timestamp lint-commit-msg {1}" |
Oops, something went wrong.