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:
- repo: https://github.com/pre-commit/pre-commit-hooks.git
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0
hooks:
- id: check-added-large-files
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: check-symlinks
exclude: >-
myclirc|netrc|packet-cli|mycli-history|scwrc|gcloud\.json|\.envrc\.private
- id: detect-private-key
- id: check-toml
files: Pipfile
- id: trailing-whitespace
- repo: https://github.com/ambv/black.git
rev: 20.8b1
hooks:
- id: black
exclude: &excluded_pythonscripts pythonrc.py|rabbitmqadmin
args:
- |
--line-length=79
- repo: https://github.com/adrienverge/yamllint.git
- repo: https://github.com/adrienverge/yamllint
rev: v1.25.0
hooks:
- id: yamllint
- repo: https://github.com/amperser/proselint.git
- repo: https://github.com/amperser/proselint/
rev: 0.10.2
hooks:
- id: proselint
types: [plain-text]
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
hooks:
- id: prospector
......@@ -73,7 +72,6 @@ repos:
additional_dependencies:
- flake8-bugbear
- repo: https://github.com/Yelp/detect-secrets.git
rev: v0.14.3
hooks:
......@@ -100,3 +98,8 @@ repos:
name: Shellcheck .bashrc
files: \.bashrc
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.
*WARNING: This will overwrite your existing files.*
```
cd
git init
git remote add origin https://git.shore.co.il/nimrod/rcfiles.git/
......@@ -22,6 +23,7 @@ mass consumption as it is.
git bull
Documents/bin/install-git-hooks
.githooks/post-merge
```
## Dependencies
......@@ -41,7 +43,7 @@ This software is licensed under the MIT license (see `LICENSE.txt`).
## Author Information
Nimrod Adar, [contact me](mailto:nimrod@shore.co.il) or visit my [website](
https://www.shore.co.il/). Patches are welcome via [`git send-email`](
http://git-scm.com/book/en/v2/Git-Commands-Email). The repository is located
at: <https://git.shore.co.il/nimrod/>.
Nimrod Adar, [contact me](mailto:nimrod@shore.co.il) or visit my
[website](https://www.shore.co.il/). Patches are welcome via
[`git send-email`](http://git-scm.com/book/en/v2/Git-Commands-Email). The repository
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