Skip to content
Snippets Groups Projects
Commit 6345f0e8 authored by nimrod's avatar nimrod
Browse files

pre-commit.

Use a merge of the Python and shell pre-commit snippets. Address the
mdformat formatting.
parent 60f5fd20
No related branches found
No related tags found
No related merge requests found
# vim:ff=unix ts=2 sw=2 ai expandtab
--- ---
repos: repos:
- repo: https://github.com/pre-commit/pre-commit-hooks.git - repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0 rev: v3.4.0
hooks: hooks:
- id: check-added-large-files
- id: check-executables-have-shebangs - id: check-executables-have-shebangs
- id: check-merge-conflict - id: check-merge-conflict
- id: check-symlinks - id: check-symlinks
exclude: >- exclude: >-
myclirc|netrc|packet-cli|mycli-history|scwrc|gcloud\.json|\.envrc\.private myclirc|netrc|packet-cli|mycli-history|scwrc|gcloud\.json|\.envrc\.private
- id: detect-private-key - id: check-toml
files: Pipfile
- id: trailing-whitespace - id: trailing-whitespace
- repo: https://github.com/ambv/black.git - repo: https://github.com/adrienverge/yamllint
rev: 20.8b1
hooks:
- id: black
exclude: &excluded_pythonscripts pythonrc.py|rabbitmqadmin
args:
- |
--line-length=79
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.25.0 rev: v1.25.0
hooks: hooks:
- id: yamllint - id: yamllint
- repo: https://github.com/amperser/proselint.git - repo: https://github.com/amperser/proselint/
rev: 0.10.2 rev: 0.10.2
hooks: hooks:
- id: proselint - id: proselint
types: [plain-text] types: [plain-text]
exclude: LICENSE exclude: LICENSE
- repo: https://github.com/PyCQA/prospector.git - repo: https://github.com/ambv/black
rev: 20.8b1
hooks:
- id: black
exclude: &excluded_pythonscripts pythonrc.py|rabbitmqadmin
args:
- |
--line-length=79
- repo: https://github.com/PyCQA/prospector
rev: 1.3.1 rev: 1.3.1
hooks: hooks:
- id: prospector - id: prospector
...@@ -73,7 +72,6 @@ repos: ...@@ -73,7 +72,6 @@ repos:
additional_dependencies: additional_dependencies:
- flake8-bugbear - flake8-bugbear
- repo: https://github.com/Yelp/detect-secrets.git - repo: https://github.com/Yelp/detect-secrets.git
rev: v0.14.3 rev: v0.14.3
hooks: hooks:
...@@ -100,3 +98,8 @@ repos: ...@@ -100,3 +98,8 @@ repos:
name: Shellcheck .bashrc name: Shellcheck .bashrc
files: \.bashrc files: \.bashrc
types: [text] types: [text]
- repo: https://github.com/executablebooks/mdformat.git
rev: 0.5.3
hooks:
- id: mdformat
...@@ -13,6 +13,7 @@ mass consumption as it is. ...@@ -13,6 +13,7 @@ mass consumption as it is.
*WARNING: This will overwrite your existing files.* *WARNING: This will overwrite your existing files.*
```
cd cd
git init git init
git remote add origin https://git.shore.co.il/nimrod/rcfiles.git/ git remote add origin https://git.shore.co.il/nimrod/rcfiles.git/
...@@ -22,6 +23,7 @@ mass consumption as it is. ...@@ -22,6 +23,7 @@ mass consumption as it is.
git bull git bull
Documents/bin/install-git-hooks Documents/bin/install-git-hooks
.githooks/post-merge .githooks/post-merge
```
## Dependencies ## Dependencies
...@@ -41,7 +43,7 @@ This software is licensed under the MIT license (see `LICENSE.txt`). ...@@ -41,7 +43,7 @@ This software is licensed under the MIT license (see `LICENSE.txt`).
## Author Information ## Author Information
Nimrod Adar, [contact me](mailto:nimrod@shore.co.il) or visit my [website]( Nimrod Adar, [contact me](mailto:nimrod@shore.co.il) or visit my
https://www.shore.co.il/). Patches are welcome via [`git send-email`]( [website](https://www.shore.co.il/). Patches are welcome via
http://git-scm.com/book/en/v2/Git-Commands-Email). The repository is located [`git send-email`](http://git-scm.com/book/en/v2/Git-Commands-Email). The repository
at: <https://git.shore.co.il/nimrod/>. is located at: <https://www.shore.co.il/git/>.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment