generated from CCBR/CCBR_SnakemakeTemplate
-
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.
Merge pull request #4 from CCBR/gitactions
feat: adding pre-commit and GH actions
- Loading branch information
Showing
3 changed files
with
57 additions
and
0 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,14 @@ | ||
name: Add to personal projects | ||
|
||
on: | ||
issues: | ||
types: | ||
- assigned | ||
pull_request: | ||
types: | ||
- assigned | ||
|
||
jobs: | ||
add-to-project: | ||
uses: CCBR/.github/.github/workflows/auto-add-user-project.yml@v0.1.0 | ||
secrets: inherit |
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,10 @@ | ||
name: Auto add reponame as label to all issues and PRs | ||
|
||
on: | ||
issues: | ||
pull_request: | ||
|
||
jobs: | ||
add_label: | ||
uses: CCBR/.github/.github/workflows/add_reponame_issue_label.yml@v0.2.0 | ||
secrets: inherit |
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 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v1.2.3 | ||
hooks: | ||
- id: check-added-large-files | ||
#- id: check-yaml | ||
- id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
# Python formatting | ||
- repo: https://github.com/psf/black | ||
rev: 23.7.0 | ||
hooks: | ||
- id: black | ||
# R formatting | ||
- repo: https://github.com/lorenzwalthert/precommit | ||
rev: v0.1.2 | ||
hooks: | ||
- id: style-files | ||
# general linting | ||
- repo: https://github.com/pre-commit/mirrors-prettier | ||
rev: v2.7.1 | ||
hooks: | ||
- id: prettier | ||
# spell check | ||
- repo: https://github.com/codespell-project/codespell | ||
rev: v2.2.4 | ||
hooks: | ||
- id: codespell | ||
# enforce commit format | ||
- repo: https://github.com/compilerla/conventional-pre-commit | ||
rev: v2.3.0 | ||
hooks: | ||
- id: conventional-pre-commit |