Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
ansible-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
ansible
ansible-pre-commit
Commits
a160d76a
Commit
a160d76a
authored
4 years ago
by
nimrod
Browse files
Options
Downloads
Patches
Plain Diff
Migrate to GitLab.
Include GitLab CI.
parent
8ad24294
No related branches found
No related tags found
No related merge requests found
Pipeline
#171
failed
4 years ago
Stage: lint
Stage: test
Changes
5
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
.gitlab-ci.yml
+54
-0
54 additions, 0 deletions
.gitlab-ci.yml
.pre-commit-config.yaml
+3
-3
3 additions, 3 deletions
.pre-commit-config.yaml
.travis.yml
+0
-26
0 additions, 26 deletions
.travis.yml
README.rst
+6
-5
6 additions, 5 deletions
README.rst
setup.py
+1
-1
1 addition, 1 deletion
setup.py
with
64 additions
and
35 deletions
.gitlab-ci.yml
0 → 100644
+
54
−
0
View file @
a160d76a
---
stages
:
-
lint
-
test
pre-commit
:
stage
:
lint
image
:
adarnimrod/ci-images:pre-commit
variables
:
&variables
XDG_CACHE_HOME
:
"
$CI_PROJECT_DIR/.cache"
LANG
:
C.UTF-8
script
:
-
pre-commit run -a
cache
:
&cache
key
:
"
$CI_JOB_NAME"
paths
:
-
.cache/
python2.7
:
stage
:
test
image
:
$project:$version-slim
allow_failure
:
true
script
:
&script
-
python setup.py check -mrs
-
pip install ./
variables
:
*variables
cache
:
*cache
parallel
:
matrix
:
-
project
:
python
version
:
-
"
2.7"
-
project
:
pypy
version
:
-
"
2.7"
python3
:
stage
:
test
image
:
$project:$version-slim
script
:
*script
variables
:
*variables
cache
:
*cache
parallel
:
matrix
:
-
project
:
python
version
:
-
"
3.6"
-
"
3.7"
-
"
3.8"
-
"
3.9"
-
project
:
pypy
version
:
-
"
3.6"
-
"
3.7"
This diff is collapsed.
Click to expand it.
.pre-commit-config.yaml
+
3
−
3
View file @
a160d76a
...
...
@@ -2,18 +2,18 @@
---
repos
:
-
repo
:
https://github.com/pre-commit/pre-commit-hooks
rev
:
v
2.5
.0
rev
:
v
3.3
.0
hooks
:
-
id
:
check-added-large-files
-
id
:
check-merge-conflict
-
id
:
detect-private-key
-
id
:
trailing-whitespace
-
repo
:
https://github.com/Lucas-C/pre-commit-hooks-markup
rev
:
v1.0.
0
rev
:
v1.0.
1
hooks
:
-
id
:
rst-linter
-
repo
:
https://github.com/adrienverge/yamllint
rev
:
v1.2
1
.0
rev
:
v1.2
5
.0
hooks
:
-
id
:
yamllint
-
repo
:
https://github.com/amperser/proselint/
...
...
This diff is collapsed.
Click to expand it.
.travis.yml
deleted
100644 → 0
+
0
−
26
View file @
8ad24294
---
language
:
python
python
:
-
"
2.7"
-
"
3.5"
-
"
3.6"
-
"
3.7"
-
"
3.8"
dist
:
bionic
sudo
:
false
group
:
beta
cache
:
-
pip
-
directories
:
-
$HOME/.pre-commit
install
:
-
pip install pre-commit docutils
script
:
-
pre-commit run --all-files
-
python setup.py check -mrs
-
pip install ./
notifications
:
email
:
false
This diff is collapsed.
Click to expand it.
README.rst
+
6
−
5
View file @
a160d76a
Ansible pre-commit hooks
########################
.. image:: https://travis-ci.org/adarnimrod/ansible-pre-commit.svg?branch=master
:target: https://travis-ci.org/adarnimrod/ansible-pre-commit
.. image:: https://git.shore.co.il/ansible/ansible-pre-commit/badges/master/pipeline.svg
:target: https://git.shore.co.il/ansible/ansible-pre-commit/-/commits/master
:alt: CI status
Ansible `pre-commit <http://pre-commit.com/>`_ hooks.
...
...
@@ -15,7 +16,7 @@ Requirements
------------
- Pre-commit 1.2 or later.
- Python 2.7 or 3.
4
or later.
- Python 2.7 or 3.
6
or later.
Installation
------------
...
...
@@ -24,7 +25,7 @@ Add the following to your :code:`.pre-commit-config.yaml`:
.. code:: yaml
- repo: https://
www
.shore.co.il/
git
/ansible-pre-commit
/
- repo: https://
git
.shore.co.il/
ansible
/ansible-pre-commit
.git
sha: v0.9.0
hooks:
- id: ansible-syntax-check
...
...
@@ -53,4 +54,4 @@ Author Information
Nimrod Adar, `contact me <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
/.
at: https://
git
.shore.co.il/
explore
/.
This diff is collapsed.
Click to expand it.
setup.py
+
1
−
1
View file @
a160d76a
...
...
@@ -3,7 +3,7 @@ from setuptools import setup
setup
(
name
=
"
pre_commit_ansible_dummy_package
"
,
url
=
"
https://
www
.shore.co.il/
git
/ansible-pre-commit
"
,
url
=
"
https://
git
.shore.co.il/
ansible
/ansible-pre-commit
"
,
author
=
"
Nimrod Adar
"
,
author_email
=
"
nimrod@shore.co.il
"
,
version
=
open
(
"
VERSION
"
,
"
r
"
).
read
().
strip
(),
...
...
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