Skip to content

Commit

Permalink
chore: repo organizations
Browse files Browse the repository at this point in the history
  • Loading branch information
lpsm-dev committed Sep 14, 2023
1 parent 5dc2d39 commit c719903
Show file tree
Hide file tree
Showing 10 changed files with 106 additions and 15,376 deletions.
File renamed without changes.
29 changes: 29 additions & 0 deletions .github/taskfiles/pre-commit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
version: "3"

tasks:
init:
desc: Initialize pre-commit hooks
preconditions:
- sh: "which pre-commit"
msg: "kind {{.PATH_ERROR}}"
cmds:
- pre-commit clean
- pre-commit gc
- task: update
- pre-commit install --install-hooks -t commit-msg

update:
desc: Update pre-commit hooks
cmds:
- pre-commit autoupdate

delete:
desc: Delete pre-commit hooks
cmds:
- pre-commit uninstall --hook-type commit-msg

run:
desc: Run pre-commit hooks
cmds:
- pre-commit run --all-files
19 changes: 0 additions & 19 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,22 +35,3 @@

# Stores VSCode versions used for testing VSCode extensions
.vscode-test

# ================================================
# NODE
# ================================================

npm-debug.log*

# Dependency directories
node_modules/

# ================================================
# YARN
# ================================================

yarn-debug.log*
yarn-error.log*

/.pnp
.pnp.js
54 changes: 34 additions & 20 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,21 +1,35 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-case-conflict
- id: check-merge-conflict
- id: check-yaml
- id: check-json
- id: trailing-whitespace
- id: double-quote-string-fixer
- id: end-of-file-fixer
- repo: https://github.com/zricethezav/gitleaks
rev: v8.16.3
hooks:
- id: gitleaks
args: ["--config", ".github/config/.gitleaks.toml", "--verbose"]
- repo: https://github.com/commitizen-tools/commitizen
rev: 3.1.0
hooks:
- id: commitizen
stages: [commit-msg]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-json
- id: check-case-conflict
- id: check-merge-conflict
- id: check-docstring-first
- id: check-executables-have-shebangs
- id: fix-byte-order-marker
- id: double-quote-string-fixer
- id: debug-statements
- id: mixed-line-ending
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
- repo: https://github.com/zricethezav/gitleaks
rev: v8.18.0
hooks:
- id: gitleaks
args: ["--verbose"]
- repo: https://github.com/commitizen-tools/commitizen
rev: 3.8.2
hooks:
- id: commitizen
- id: commitizen-branch
stages: [push]
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.4
hooks:
- id: remove-crlf
- id: remove-tabs
- repo: https://github.com/sirosen/fix-smartquotes
rev: 0.2.0
hooks:
- id: fix-smartquotes
2 changes: 2 additions & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
gitleaks 8.18.0
task 3.30.0
26 changes: 9 additions & 17 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,21 +1,13 @@
MIT License
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004

Copyright (c) 2022 Lucca <[email protected]>
Copyright (C) 2023 LPSM Dev <[email protected]>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION

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.
0. You just DO WHAT THE FUCK YOU WANT TO.
29 changes: 0 additions & 29 deletions Makefile

This file was deleted.

32 changes: 32 additions & 0 deletions Taskfile.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
# Taskfile to be used with `task` binary.
# Usage:
# - Install with `asdf`: `asdf plugin add task`
# - List available tasks with: `task --list`
version: "3"

vars:
CLEAR: tput reset
PATH_ERROR: is not installed or correctly configured in PATH.

includes:
precommit: .github/taskfiles/pre-commit.yml

tasks:
default:
silent: true
aliases: [commands]
cmds:
- task --list

clear:
cmds:
- sleep 0.1 && {{.CLEAR}}

gitleaks:
desc: Performs secret-detection in git repo using gitleaks
preconditions:
- sh: "which gitleaks"
msg: "gitleaks {{.PATH_ERROR}}"
cmds:
- gitleaks detect --verbose .
Loading

0 comments on commit c719903

Please sign in to comment.