Skip to content

Commit be59096

Browse files
committed
adding yamllint to tox
Signed-off-by: rakeshgm <[email protected]>
1 parent 4e79962 commit be59096

File tree

227 files changed

+1950
-5038
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

227 files changed

+1950
-5038
lines changed

.yamllint.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
yaml-files:
3+
- "*.yaml"
4+
- "*.yml"
5+
- ".yamllint"
6+
7+
rules:
8+
braces: enable
9+
brackets: enable
10+
colons: enable
11+
commas: enable
12+
comments: disable
13+
comments-indentation:
14+
level: warning
15+
document-end: disable
16+
document-start: disable
17+
empty-lines: enable
18+
empty-values: disable
19+
hyphens: enable
20+
indentation: disable
21+
key-duplicates: enable
22+
key-ordering: disable
23+
line-length: disable
24+
new-line-at-end-of-file: enable
25+
new-lines: enable
26+
octal-values: disable
27+
quoted-strings: disable
28+
trailing-spaces: enable
29+
truthy: disable

README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ the requirement of OSD/Mon/RGW nodes in its header comment
2222
#### Development Guidelines
2323
An attempt is made to follow a set of style guidelines for clarity. As we grow and have more contributors, it becomes essential for us to follow some standard practices. We use:
2424
- black
25-
- isort
25+
- isort
26+
- yamllint
2627

2728
##### black
2829
```
@@ -52,3 +53,16 @@ where `filename`
5253
- a relative or absolute path of the file
5354
- a relative or absolute path of a directory
5455
```
56+
57+
##### yamllint
58+
```
59+
Install in your enviornemnt using
60+
$ pip3 install yamllint
61+
62+
# linting yamls with yamllint
63+
$ yamllint <filename>
64+
65+
where `filename`
66+
- a relative or absolute path of the file
67+
- a relative or absolute path of a directory
68+
```

calamari/api_test_cases/config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ calamari:
44
port: 8002
55
username: <username>
66
password: <password>
7-
log_copy_location: /tmp/logs
7+
log_copy_location: /tmp/logs

ceph_install/rhel/u130/config.yaml

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,33 @@
11
# ceph installation configuration
22
machine:
3-
# add machine details of mon,osd and admin.
4-
# format: ip_address-shorthostname
5-
# example - 1.1.1.1:magna001
3+
# add machine details of mon,osd and admin.
4+
# format: ip_address-shorthostname
5+
# example - 1.1.1.1:magna001
66

7-
mon:
8-
10.8.128.7-magna007
7+
mon: 10.8.128.7-magna007
98
10.8.128.28-magna028
109
10.8.128.35-magna035
11-
osd:
12-
10.8.128.37-magna037
10+
osd: 10.8.128.37-magna037
1311
10.8.128.50-magna050
1412
10.8.128.63-magna063
15-
admin:
16-
10.8.128.7-magna007
13+
admin: 10.8.128.7-magna007
1714

1815
ceph_config:
1916
cdn_live_username: [email protected]
2017
cdn_live_password: a85xH8a5w8EaZbdS
2118

2219
rhel_pool_id: 8a85f9823e3d5e43013e3ddd4e2a0977
2320

24-
cdn_enabled: false # true or false
25-
iso_enabled: true # true or false
21+
cdn_enabled: false # true or false
22+
iso_enabled: true # true or false
2623
iso: http://puddle.ceph.redhat.com/distill/1.3-compose-trees/Ceph-1.3-RHEL-7-20160126.t.0/compose/Installer/x86_64/iso/Ceph-1.3-RHEL-7-20160126.t.0-x86_64-dvd.iso
27-
gpg_signing_on: true # true of false
28-
29-
24+
gpg_signing_on: true # true of false
3025

3126
repos:
3227
mon: rhel-7-server-rhceph-1.3-mon-rpms
3328
osd: rhel-7-server-rhceph-1.3-osd-rpms
3429

3530
admin:
3631
installer: rhel-7-server-rhceph-1.3-installer-rpms
37-
calamari: rhel-7-server-rhceph-1.3-calamari-rpms
32+
calamari: rhel-7-server-rhceph-1.3-calamari-rpms
3833
tools: rhel-7-server-rhceph-1.3-tools-rpms
39-

rgw/requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,6 @@ rgwadmin
1515
# for checks
1616
black
1717
isort
18+
yamllint
1819
tox
20+
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
config:
2-
bucket_count: 2
3-
objects_count: 0
2+
bucket_count: 2
3+
objects_count: 0
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
config:
2-
bucket_count: 1
3-
objects_count: 10
4-
objects_size_range:
5-
min: 5
6-
max: 15
2+
bucket_count: 1
3+
objects_count: 10
4+
objects_size_range:
5+
min: 5
6+
max: 15
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
config:
2-
bucket_count: 2
3-
objects_count: 10
4-
objects_size_range:
5-
min: 5
6-
max: 15
2+
bucket_count: 2
3+
objects_count: 10
4+
objects_size_range:
5+
min: 5
6+
max: 15
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
config:
2-
bucket_count: 2
3-
objects_count: 4
4-
objects_size_range:
5-
min: 5
6-
max: 15
2+
bucket_count: 2
3+
objects_count: 4
4+
objects_size_range:
5+
min: 5
6+
max: 15
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
config:
2-
objects_count: 4
3-
objects_size_range:
4-
min: 5
5-
max: 15
2+
objects_count: 4
3+
objects_size_range:
4+
min: 5
5+
max: 15

0 commit comments

Comments
 (0)