Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
python-pre-commit
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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
nimrod
python-pre-commit
Commits
7020043d
Commit
7020043d
authored
9 years ago
by
nimrod
Browse files
Options
Downloads
Patches
Plain Diff
- Some more documentation.
parent
677c9ae1
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.rst
+10
-2
10 additions, 2 deletions
README.rst
with
10 additions
and
2 deletions
README.rst
+
10
−
2
View file @
7020043d
...
@@ -4,8 +4,14 @@ Ansible pre-commit hook
...
@@ -4,8 +4,14 @@ Ansible pre-commit hook
Ansible `pre-commit <http://pre-commit.com/>`_ hook. The hook runs
Ansible `pre-commit <http://pre-commit.com/>`_ hook. The hook runs
:code:`ansible --syntax-check` against playbooks declared.
:code:`ansible --syntax-check` against playbooks declared.
Usage
Dependencies
-----
------------
- Ansible.
- Pre-commit.
Installation
------------
Add the following to your :code:`.pre-commit-config.yaml`:
Add the following to your :code:`.pre-commit-config.yaml`:
...
@@ -17,6 +23,8 @@ Add the following to your :code:`.pre-commit-config.yaml`:
...
@@ -17,6 +23,8 @@ Add the following to your :code:`.pre-commit-config.yaml`:
- id: ansible-pre-commit
- id: ansible-pre-commit
files: playbook.yml
files: playbook.yml
And run :code:`pre-commit autoupdate` to update the hooks.
License
License
-------
-------
...
...
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