-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix errors coming from linters (#61)
* Fix ansible-lint errors * Fix galaxy.yaml * Fix pep8 issues * Fix pylint issues * Fix shellcheck issues * Remove venv from collection build * Update README.md and galaxy.yml files * Fix ansible-lint errors * Test suppressing linter errors * Revert "Test suppressing linter errors" This reverts commit 65e4039. * Add ansible-lint test * Refactor oneagent installer to pass ctl args safely * Reformat files * Configure pre-commit hooks * fixup! Reformat files * fixup! Refactor oneagent installer to pass ctl args safely * add pylint settings to pyproject file * touch up shell scripts --------- Co-authored-by: wojciech.stechura <wojciech.stechura@dynatrace.com> Co-authored-by: Jakub Rak <jakub.rak@dynatrace.com>
- Loading branch information
1 parent
2effbf1
commit eb04a21
Showing
42 changed files
with
603 additions
and
377 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
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 |
---|---|---|
@@ -1,8 +1,45 @@ | ||
--- | ||
repos: | ||
- repo: https://github.com/ansible/ansible-lint | ||
rev: v24.2.2 | ||
rev: v24.12.2 | ||
hooks: | ||
- id: ansible-lint | ||
pass_filenames: false | ||
args: ['--exclude', 'roles/oneagent/examples', 'tests/component/resources/ansible/oneagent.yml'] | ||
|
||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v5.0.0 | ||
hooks: | ||
- id: mixed-line-ending | ||
- id: trailing-whitespace | ||
|
||
- repo: https://github.com/psf/black | ||
rev: 24.10.0 | ||
hooks: | ||
- id: black | ||
|
||
- repo: local | ||
hooks: | ||
- id: shfmt | ||
name: shfmt | ||
additional_dependencies: [mvdan.cc/sh/v3/cmd/shfmt@v3.8.0] | ||
entry: shfmt | ||
language: golang | ||
exclude: roles/oneagent/tests/resources/installers/Dynatrace-OneAgent-Linux.sh | ||
args: | ||
- "-s" | ||
- "-w" | ||
types: [shell] | ||
|
||
- repo: https://github.com/shellcheck-py/shellcheck-py | ||
rev: "v0.10.0.1" | ||
hooks: | ||
- id: shellcheck | ||
exclude: gradlew | ||
args: | ||
- "--external-sources" | ||
|
||
- repo: https://github.com/adrienverge/yamllint | ||
rev: "v1.35.0" | ||
hooks: | ||
- id: yamllint | ||
files: \.(yaml|yml) |
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,6 @@ | ||
--- | ||
rules: | ||
document-start: | ||
ignore: | | ||
/.github | ||
line-length: disable |
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,10 @@ | ||
[tool.pylint.BASIC] | ||
max-line-length = 120 | ||
|
||
[tool.pylint.'MESSAGES CONTROL'] | ||
disable = ''' | ||
missing-docstring, | ||
''' | ||
|
||
[tool.black] | ||
line-length = 120 |
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
Oops, something went wrong.