-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from kuisathaverat/fix/lint
fix: add Python requirement before lint
- Loading branch information
Showing
13 changed files
with
550 additions
and
219 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.0.1 | ||
hooks: | ||
- id: check-case-conflict | ||
- id: check-executables-have-shebangs | ||
exclude: (.+.bat$|.+.ps1$|^target/) | ||
- id: check-json | ||
- id: check-merge-conflict | ||
- id: check-yaml | ||
args: [--allow-multiple-documents] | ||
- id: check-xml | ||
- id: end-of-file-fixer | ||
- id: mixed-line-ending | ||
- id: trailing-whitespace | ||
|
||
- repo: https://github.com/detailyang/pre-commit-shell.git | ||
rev: master | ||
hooks: | ||
- id: shell-lint | ||
name: "Shellscript: lint" | ||
stages: [commit] | ||
types: [shell] | ||
|
||
- repo: https://github.com/adrienverge/yamllint.git | ||
rev: v1.25.0 | ||
hooks: | ||
- id: yamllint | ||
name: "Yaml: lint" | ||
args: ['-c','.yamlint.yml'] | ||
stages: [commit] | ||
types: [yaml] | ||
exclude: (^.pre-commit-config.yaml$|^.pre-commit-hooks.yaml$) | ||
|
||
- repo: https://github.com/elastic/apm-pipeline-library.git | ||
rev: current | ||
hooks: | ||
- id: check-bash-syntax | ||
- id: check-abstract-classes-and-trait # TODO: this hook won't be needed once the CI migration is completed | ||
- id: check-jsonslurper-class # TODO: this hook won't be needed once the CI migration is completed | ||
- id: check-unicode-non-breaking-spaces | ||
- id: remove-unicode-non-breaking-spaces | ||
- id: check-en-dashes | ||
- id: remove-en-dashes | ||
|
||
- repo: https://github.com/codespell-project/codespell | ||
rev: v2.1.0 | ||
hooks: | ||
- id: codespell | ||
args: ['--ignore-words-list','pullrequest,pullrequests'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
extends: default | ||
|
||
rules: | ||
# 120 chars should be enough, but don't fail if a line is longer | ||
line-length: | ||
max: 120 | ||
level: warning | ||
|
||
indentation: | ||
level: warning |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.