SF initial configurator | 1508907 | 2022-10-06 13:33:19 +0300 | [diff] [blame] | 1 | --- |
2 | - name: "Run flake8" | ||||
3 | shell: find * -name "*.py" | xargs --no-run-if-empty flake8 | ||||
4 | register: _flake8 | ||||
5 | ignore_errors: yes | ||||
6 | environment: | ||||
7 | PATH: "{{ ansible_env.PATH }}:{{ ansible_env.HOME }}/.local/bin" | ||||
8 | args: | ||||
9 | chdir: "{{ zuul.project.src_dir }}" | ||||
10 | |||||
11 | - name: Set linter failure to true | ||||
12 | set_fact: | ||||
13 | linter_failure: true | ||||
14 | when: _flake8.rc |