Skip to content

Commit 62143c5

Browse files
authored
Merge pull request #81 from jeff350/master
chore: update pre-commit
2 parents 266a831 + 253ae6a commit 62143c5

File tree

9 files changed

+33
-23
lines changed

9 files changed

+33
-23
lines changed

.kitchen.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ platforms:
1717
- name: ubuntu-16.04
1818
driver_config:
1919
provision_command:
20+
# yamllint disable rule:line-length
2021
- apt-get update && apt-get install -y netcat-openbsd locales && locale-gen en_US.UTF-8
22+
# yamllint enable
2123
run_command: /sbin/init
2224
privileged: true
2325
pid_one_command: /usr/lib/systemd/systemd
@@ -51,8 +53,10 @@ suites:
5153
sun-java.sls:
5254
java:
5355
version_name: jdk1.8.0_131
56+
# yamllint disable rule:line-length
5457
source_url: http://download.oracle.com/otn-pub/java/jdk/8u131-b11/d54c1d3a095b4ff2b6607d096fa80163/jdk-8u131-linux-x64.tar.gz
5558
source_hash: 62b215bdfb48bace523723cdbb2157c665e6a25429c73828a32f00e587301236
59+
# yamllint enable
5660
zookeeper.sls:
5761
zookeeper:
5862
version: 3.4.10

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,30 +30,30 @@ repos:
3030
additional_dependencies: ['@commitlint/config-conventional@8.3.4']
3131
always_run: true
3232
- repo: https://github.com/rubocop-hq/rubocop
33-
rev: v1.30.1
33+
rev: v1.56.4
3434
hooks:
3535
- id: rubocop
3636
name: Check Ruby files with rubocop
3737
args: [--debug]
3838
always_run: true
3939
pass_filenames: false
4040
- repo: https://github.com/shellcheck-py/shellcheck-py
41-
rev: v0.8.0.4
41+
rev: v0.9.0.6
4242
hooks:
4343
- id: shellcheck
4444
name: Check shell scripts with shellcheck
4545
files: ^.*\.(sh|bash|ksh)$
4646
types: []
4747
- repo: https://github.com/adrienverge/yamllint
48-
rev: v1.26.3
48+
rev: v1.32.0
4949
hooks:
5050
- id: yamllint
5151
name: Check YAML syntax with yamllint
5252
args: [--strict, '.']
5353
always_run: true
5454
pass_filenames: false
5555
- repo: https://github.com/warpnet/salt-lint
56-
rev: v0.8.0
56+
rev: v0.9.2
5757
hooks:
5858
- id: salt-lint
5959
name: Check Salt files using salt-lint

.rubocop.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,17 @@ Layout/LineLength:
77
# Based on https://github.com/PyCQA/flake8-bugbear#opinionated-warnings (`B950`)
88
Max: 88
99
Metrics/BlockLength:
10-
ExcludedMethods:
10+
IgnoredMethods:
1111
- control
1212
- describe
1313
# Increase from default of `25`
1414
Max: 30
15+
Security/YAMLLoad:
16+
Exclude:
17+
- test/integration/**/_mapdata.rb
18+
19+
# General settings across all cops in this formula
20+
AllCops:
21+
NewCops: enable
1522

1623
# Any offenses that should be fixed, e.g. collected via. `rubocop --auto-gen-config`

.salt-lint

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
# vim: ft=yaml
33
---
44
exclude_paths: []
5-
rules: {}
5+
rules:
6+
204:
7+
ignore: 'zookeeper/files/default/systemd.tmpl.jinja'
68
skip_list:
79
# Using `salt-lint` for linting other files as well, such as Jinja macros/templates
810
- 205 # Use ".sls" as a Salt State file extension

bin/kitchen

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ if File.file?(bundle_binstub)
1919
load(bundle_binstub)
2020
else
2121
abort(
22-
'Your `bin/bundle` was not generated by Bundler, '\
23-
'so this binstub cannot run. Replace `bin/bundle` by running '\
22+
'Your `bin/bundle` was not generated by Bundler, ' \
23+
'so this binstub cannot run. Replace `bin/bundle` by running ' \
2424
'`bundle binstubs bundler --force`, then run this command again.'
2525
)
2626
end

docs/README.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.. _readme:
22

33
zookeeper-formula
4-
================
4+
=================
55

66
Installs and Configures Apache Zookeeper from from a tar file.
77

@@ -75,7 +75,7 @@ Available states
7575
:local:
7676

7777
``zookeeper``
78-
^^^^^^^^^^^^
78+
^^^^^^^^^^^^^
7979

8080
*Meta-state (This is a state that includes other states)*.
8181

@@ -84,24 +84,24 @@ manages the zookeeper configuration file and then
8484
starts the associated zookeeper service.
8585

8686
``zookeeper.package``
87-
^^^^^^^^^^^^^^^^^^^^
87+
^^^^^^^^^^^^^^^^^^^^^
8888

8989
This state will install the zookeeper package only.
9090

9191
``zookeeper.config``
92-
^^^^^^^^^^^^^^^^^^^
92+
^^^^^^^^^^^^^^^^^^^^
9393

9494
This state will configure the zookeeper service and has a dependency on ``zookeeper.install``
9595
via include list.
9696

9797
``zookeeper.service``
98-
^^^^^^^^^^^^^^^^^^^^
98+
^^^^^^^^^^^^^^^^^^^^^
9999

100100
This state will start the zookeeper service and has a dependency on ``zookeeper.config``
101101
via include list.
102102

103103
``zookeeper.clean``
104-
^^^^^^^^^^^^^^^^^^
104+
^^^^^^^^^^^^^^^^^^^
105105

106106
*Meta-state (This is a state that includes other states)*.
107107

@@ -111,18 +111,18 @@ removes the configuration file and
111111
then uninstalls the package.
112112

113113
``zookeeper.service.clean``
114-
^^^^^^^^^^^^^^^^^^^^^^^^^^
114+
^^^^^^^^^^^^^^^^^^^^^^^^^^^
115115

116116
This state will stop the zookeeper service and disable it at boot time.
117117

118118
``zookeeper.config.clean``
119-
^^^^^^^^^^^^^^^^^^^^^^^^^
119+
^^^^^^^^^^^^^^^^^^^^^^^^^^
120120

121121
This state will remove the configuration of the zookeeper service and has a
122122
dependency on ``zookeeper.service.clean`` via include list.
123123

124124
``zookeeper.package.clean``
125-
^^^^^^^^^^^^^^^^^^^^^^^^^^
125+
^^^^^^^^^^^^^^^^^^^^^^^^^^^
126126

127127
This state will remove the zookeeper package and has a depency on
128128
``zookeeper.config.clean`` via include list.

pillar.example

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,4 @@ zookeeper:
3030
clientPort: 2181
3131
initLimit: 5
3232
syncLimit: 2
33-
34-
customservers: ''
33+
customservers: ''

test/integration/default/controls/config_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
# rubocop:disable Lint/RedundantCopDisableDirective
2525
# rubocop:disable Layout/LineLength
2626
should include(
27-
'"tofs": {"files_switch": ["any/path/can/be/used/here", "id", '\
28-
'"roles", "osfinger", "os", "os_family"], "source_files": '\
27+
'"tofs": {"files_switch": ["any/path/can/be/used/here", "id", ' \
28+
'"roles", "osfinger", "os", "os_family"], "source_files": ' \
2929
'{"zookeeper-config-file-file-managed": ["example.tmpl.jinja"]}'
3030
)
3131
# rubocop:enable Layout/LineLength

zookeeper/defaults.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,4 @@ zookeeper:
3030
clientPort: 2181
3131
initLimit: 5
3232
syncLimit: 2
33-
3433
customservers: ''
35-

0 commit comments

Comments
 (0)