Skip to content
Snippets Groups Projects
Commit 2e1ee3be authored by nimrod's avatar nimrod
Browse files

- Cleanup (removed files not in use, tests).

- Added flake8 test for setup.py.
parent d805ec8a
Branches
Tags
No related merge requests found
......@@ -4,18 +4,9 @@
- id: check-added-large-files
- id: check-yaml
- id: check-merge-conflict
- id: flake8
- repo: https://www.shore.co.il/git/shell-pre-commit/
sha: v0.1.0
hooks:
- id: shell-lint
files: ansible-syntax-check|ansible-vault-check
- repo: local
hooks:
- id: piprot
name: piprot
description: Check up-to-date Python requirements
language: system
entry: piprot
args: ['--quiet', '--outdated']
files: requirements.txt
always_run: true
files: ansible-vault-check
......@@ -9,6 +9,9 @@ cache:
- directories:
- $HOME/.pre-commit
install:
- pip install pre-commit
script:
- pre-commit run --all-files
......
#!/bin/sh
set -eu
for playbook in $@
do
ansible-playbook --inventory=localhost, --syntax-check "$playbook"
done
ansible==2.2.1.0
pre-commit==0.11.0
piprot==0.9.7
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment