Skip to content

Commit

Permalink
feat: adding pre-commit and GH actions
Browse files Browse the repository at this point in the history
  • Loading branch information
kopardev committed Oct 23, 2023
1 parent b637136 commit ff7c3d2
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/auto_add_issues_to_user_kanban.yaml
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
10 changes: 10 additions & 0 deletions .github/workflows/auto_add_reponame_labels.yaml
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
33 changes: 33 additions & 0 deletions .pre-commit-config.yaml
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

0 comments on commit ff7c3d2

Please sign in to comment.