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
No related branches found
No related tags found
No related merge requests found
...@@ -4,18 +4,9 @@ ...@@ -4,18 +4,9 @@
- id: check-added-large-files - id: check-added-large-files
- id: check-yaml - id: check-yaml
- id: check-merge-conflict - id: check-merge-conflict
- id: flake8
- repo: https://www.shore.co.il/git/shell-pre-commit/ - repo: https://www.shore.co.il/git/shell-pre-commit/
sha: v0.1.0 sha: v0.1.0
hooks: hooks:
- id: shell-lint - id: shell-lint
files: ansible-syntax-check|ansible-vault-check files: 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
...@@ -9,6 +9,9 @@ cache: ...@@ -9,6 +9,9 @@ cache:
- directories: - directories:
- $HOME/.pre-commit - $HOME/.pre-commit
install:
- pip install pre-commit
script: script:
- pre-commit run --all-files - 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