b541c5ef99
Executes all linters via pre-commit, which is much faster, guarantees their version locking and allows upgrading them with a single command. Before this change the only linter running via pre-commit was ansible-lint. Now we also run bashate, flake8 and yamllint via pre-commit. For developer convenience we still keep the old tox environments which allow running a single linter. Added long_description_content_type to fix twine check failure Change-Id: I037eae61921b2a84aa99838804f70e96ee8d8b13
17 lines
549 B
YAML
17 lines
549 B
YAML
---
|
|
- name: Ensure that source_image is defined
|
|
assert:
|
|
that:
|
|
- source_image is defined
|
|
- source_image | length > 0
|
|
|
|
- name: Ensure that container_build_tool is correctly set
|
|
fail: msg="{{ container_build_tool }} is not a valid value for
|
|
container_build_tool. Pick docker or buildah."
|
|
when: container_build_tool not in ['docker', 'buildah']
|
|
|
|
- name: Set default modified_append_tag
|
|
set_fact:
|
|
modified_append_tag: "{{ lookup('pipe','date +-modified-%Y%m%d%H%M%S') }}"
|
|
when: modified_append_tag is undefined
|