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
Loading
Loading
Loading
Loading
+2 −11
Original line number Diff line number Diff line
@@ -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
+3 −0
Original line number Diff line number Diff line
@@ -9,6 +9,9 @@ cache:
  - directories:
      - $HOME/.pre-commit

install:
  - pip install pre-commit

script:
  - pre-commit run --all-files

ansible-syntax-check

deleted100755 → 0
+0 −6
Original line number Diff line number Diff line
#!/bin/sh
set -eu
for playbook in $@
do
    ansible-playbook --inventory=localhost, --syntax-check "$playbook"
done

requirements.txt

deleted100644 → 0
+0 −3
Original line number Diff line number Diff line
ansible==2.2.1.0
pre-commit==0.11.0
piprot==0.9.7