-
Notifications
You must be signed in to change notification settings - Fork 5
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 #24 from CM000n/enhancement/beautify_pre_commit
Enhancemet: beautify pre-commit
- Loading branch information
Showing
12 changed files
with
322 additions
and
192 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
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
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 |
---|---|---|
@@ -1,70 +1,70 @@ | ||
# the GitHub Action https://github.com/marketplace/actions/github-labeler. | ||
- name: ':bell: automerge' | ||
color: 8f4fbc | ||
description: '' | ||
- name: ':robot: bot' | ||
color: 69cde9 | ||
description: '' | ||
- name: ':bug: bug' | ||
color: b60205 | ||
description: '' | ||
- name: ':warning: breaking change' | ||
color: b60205 | ||
description: '' | ||
- name: ':game_die: dependencies' | ||
color: 0366d6 | ||
description: '' | ||
- name: ':memo: documentation' | ||
color: c5def5 | ||
description: '' | ||
- name: ':busts_in_silhouette: duplicate' | ||
color: cccccc | ||
description: '' | ||
- name: ':speech_balloon: translation' | ||
color: b2a8a6 | ||
description: '' | ||
- name: ':wrench: enhancement' | ||
color: 0054ca | ||
description: '' | ||
- name: ':rocket: feature' | ||
color: 0e8a16 | ||
description: '' | ||
- name: ':mega: feedback' | ||
color: 03a9f4 | ||
description: '' | ||
- name: ':clock10: future maybe' | ||
color: fef2c0 | ||
description: '' | ||
- name: ':hatching_chick: good first issue' | ||
color: 7057ff | ||
description: '' | ||
- name: ':pray: help wanted' | ||
color: 4caf50 | ||
description: '' | ||
- name: ':no_entry_sign: invalid' | ||
color: e6e6e6 | ||
description: '' | ||
- name: ':mag: investigate' | ||
color: e6625b | ||
description: '' | ||
- name: ':thinking: needs more info' | ||
color: '795548' | ||
description: '' | ||
- name: ':pushpin: pinned' | ||
color: 28008e | ||
description: '' | ||
- name: ':question: question' | ||
color: 3f51b5 | ||
description: '' | ||
- name: ':skull: stale' | ||
color: 237da0 | ||
description: '' | ||
- name: ':eyes: upstream' | ||
color: fbca04 | ||
description: '' | ||
- name: ':construction_worker: WIP' | ||
color: '668000' | ||
description: '' | ||
- name: ':coffin: wontfix' | ||
color: ffffff | ||
description: '' | ||
- name: ":bell: automerge" | ||
color: 8f4fbc | ||
description: "" | ||
- name: ":robot: bot" | ||
color: 69cde9 | ||
description: "" | ||
- name: ":bug: bug" | ||
color: b60205 | ||
description: "" | ||
- name: ":warning: breaking change" | ||
color: b60205 | ||
description: "" | ||
- name: ":game_die: dependencies" | ||
color: 0366d6 | ||
description: "" | ||
- name: ":memo: documentation" | ||
color: c5def5 | ||
description: "" | ||
- name: ":busts_in_silhouette: duplicate" | ||
color: cccccc | ||
description: "" | ||
- name: ":speech_balloon: translation" | ||
color: b2a8a6 | ||
description: "" | ||
- name: ":wrench: enhancement" | ||
color: 0054ca | ||
description: "" | ||
- name: ":rocket: feature" | ||
color: 0e8a16 | ||
description: "" | ||
- name: ":mega: feedback" | ||
color: 03a9f4 | ||
description: "" | ||
- name: ":clock10: future maybe" | ||
color: fef2c0 | ||
description: "" | ||
- name: ":hatching_chick: good first issue" | ||
color: 7057ff | ||
description: "" | ||
- name: ":pray: help wanted" | ||
color: 4caf50 | ||
description: "" | ||
- name: ":no_entry_sign: invalid" | ||
color: e6e6e6 | ||
description: "" | ||
- name: ":mag: investigate" | ||
color: e6625b | ||
description: "" | ||
- name: ":thinking: needs more info" | ||
color: "795548" | ||
description: "" | ||
- name: ":pushpin: pinned" | ||
color: 28008e | ||
description: "" | ||
- name: ":question: question" | ||
color: 3f51b5 | ||
description: "" | ||
- name: ":skull: stale" | ||
color: 237da0 | ||
description: "" | ||
- name: ":eyes: upstream" | ||
color: fbca04 | ||
description: "" | ||
- name: ":construction_worker: WIP" | ||
color: "668000" | ||
description: "" | ||
- name: ":coffin: wontfix" | ||
color: ffffff | ||
description: "" |
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 |
---|---|---|
@@ -1,37 +1,89 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v3.4.0 | ||
- repo: local | ||
hooks: | ||
- id: check-added-large-files | ||
- id: check-json | ||
name: "✅ Check JSON files" | ||
language: system | ||
types: [json] | ||
entry: poetry run check-json | ||
- id: check-toml | ||
name: "✅ Check TOML files" | ||
language: system | ||
types: [toml] | ||
entry: poetry run check-toml | ||
- id: check-yaml | ||
name: "✅ Check YAML files" | ||
language: system | ||
types: [yaml] | ||
entry: poetry run check-yaml | ||
- id: check-json | ||
name: "📁 Check for large files" | ||
language: system | ||
entry: poetry run check-added-large-files | ||
- id: check-json | ||
exclude: .devcontainer | ||
name: "🐛 Check for forgotten debug statemens" | ||
language: system | ||
types: [python] | ||
entry: poetry run debug-statement-hook | ||
- id: check-merge-conflict | ||
- id: debug-statements | ||
- id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
- id: no-commit-to-branch | ||
args: [--branch, master, --branch, main] | ||
- repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt | ||
rev: 0.2.2 | ||
hooks: | ||
- id: yamlfmt | ||
args: [--mapping, '2', --sequence, '4', --offset, '2', --width, '120', --implicit_start] | ||
- repo: local | ||
hooks: | ||
name: "💥 Check for merge conflicts" | ||
language: system | ||
types: [text] | ||
entry: poetry run check-merge-conflict | ||
- id: check-symlinks | ||
name: "🔗 Check for broken symlinks" | ||
language: system | ||
types: [symlink] | ||
entry: poetry run check-symlinks | ||
- id: codespell | ||
name: codespell | ||
name: "💭 Check for code spelling" | ||
entry: poetry run codespell --write-changes --skip="./*" | ||
language: system | ||
pass_filenames: false | ||
always_run: true | ||
- id: ruff format | ||
name: ruff format | ||
entry: poetry run ruff format | ||
- id: end-of-file-fixer | ||
name: "🔚 Fix End of Files" | ||
language: system | ||
types: [text] | ||
entry: poetry run end-of-file-fixer | ||
stages: [commit, push, manual] | ||
- id: end-of-file-fixer | ||
name: "⬜ Fix trailing whitespaces" | ||
language: system | ||
types: [text] | ||
entry: poetry run end-of-file-fixer | ||
stages: [commit, push, manual] | ||
- id: ruff-check | ||
name: "🐶 Ruff Linter" | ||
language: system | ||
types: [python] | ||
- id: ruff lint | ||
name: ruff lint | ||
entry: poetry run ruff | ||
entry: poetry run ruff check --fix | ||
require_serial: true | ||
stages: [commit, push, manual] | ||
- id: ruff-format | ||
name: "🐶 Ruff Formatter" | ||
language: system | ||
types: [python] | ||
entry: poetry run ruff format | ||
require_serial: true | ||
stages: [commit, push, manual] | ||
- id: poetry pyproject check | ||
name: "📜 Check pyproject with Poetry" | ||
language: system | ||
entry: poetry check | ||
pass_filenames: false | ||
always_run: true | ||
- id: no-commit-to-branch | ||
name: "🛑 Don't commit to main branch" | ||
language: system | ||
entry: poetry run no-commit-to-branch | ||
pass_filenames: false | ||
always_run: true | ||
args: | ||
- --branch=master | ||
- --branch=main | ||
- repo: https://github.com/pre-commit/mirrors-prettier | ||
rev: v2.7.1 | ||
hooks: | ||
- id: prettier | ||
name: 🎨 Format using prettier |
Oops, something went wrong.