Skip to content

Commit 91df2f1

Browse files
authored
Fix linters in CI (#873)
SUMMARY It seems that recent updates in linters break CI. Closes #874 ISSUE TYPE Bugfix Pull Request COMPONENT NAME CI ADDITIONAL INFORMATION Reviewed-by: Mike Graves <[email protected]> Reviewed-by: Yuriy Novostavskiy
1 parent 1943dfc commit 91df2f1

File tree

6 files changed

+16
-4
lines changed

6 files changed

+16
-4
lines changed

.ansible-lint-ignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# https://docs.ansible.com/ansible-lint/docs/rules/
2+
# no-changed-when is not requried for examples
3+
plugins/connection/kubectl.py no-changed-when
4+
# false positive result
5+
plugins/connection/kubectl.py var-naming[no-reserved]

.config/ansible-lint-ignore.txt

-2
This file was deleted.

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ changelogs/.plugin-cache.yaml
1313
tests/output
1414
tests/integration/cloud-config-*
1515
.cache
16+
.ansible
1617

1718
# Helm charts
1819
tests/integration/*-chart-*.tgz

.yamllint

+8
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,24 @@ rules:
55
braces:
66
max-spaces-inside: 1
77
level: error
8+
89
brackets:
910
max-spaces-inside: 1
1011
level: error
12+
comments:
13+
min-spaces-from-content: 1
14+
comments-indentation: false
1115
document-start: disable
1216
line-length: disable
1317
truthy: disable
1418
indentation:
1519
spaces: 2
1620
indent-sequences: consistent
21+
octal-values:
22+
forbid-implicit-octal: true
23+
forbid-explicit-octal: true
1724
ignore: |
1825
.cache
1926
.tox
27+
.ansible
2028
tests/output

tests/integration/targets/k8s_manifest_url/tasks/main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
- name: Update directory permissions
2424
file:
2525
path: "{{ manifests_dir.path }}"
26-
mode: 0755
26+
mode: '0755'
2727

2828
- name: Create manifests files
2929
copy:

tests/integration/targets/lookup_kustomize/tasks/main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
- name: make script as executable
4646
file:
4747
path: "{{ tmp_dir_path }}/install_kustomize.sh"
48-
mode: 0755
48+
mode: '0755'
4949

5050
- name: Install kustomize
5151
command: "{{ tmp_dir_path }}/install_kustomize.sh"

0 commit comments

Comments
 (0)