Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
rcfiles
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nimrod
rcfiles
Commits
6345f0e8
Commit
6345f0e8
authored
4 years ago
by
nimrod
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.pre-commit-config.yaml
+20
-17
20 additions, 17 deletions
.pre-commit-config.yaml
README.md
+15
-13
15 additions, 13 deletions
README.md
with
35 additions
and
30 deletions
.pre-commit-config.yaml
+
20
−
17
View file @
6345f0e8
# 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
This diff is collapsed.
Click to expand it.
README.md
+
15
−
13
View file @
6345f0e8
...
@@ -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
/>
.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment