Skip to content

Use pre-commit when detected, otherwise use built-in lint#134

Merged
greg-hellings merged 1 commit into
mainfrom
remove_yamllint
Jun 14, 2022
Merged

Use pre-commit when detected, otherwise use built-in lint#134
greg-hellings merged 1 commit into
mainfrom
remove_yamllint

Conversation

@greg-hellings

Copy link
Copy Markdown
Contributor

Remove explicit call to yamllint unless the user has a yamllint
configuration set. Otherwise, allow ansible-lint to handle that directly
(ansible-lint does not allow configuration of a non-standard yamllint
configuration file path, hence allowing for this flexibility)

Add support for detection of pre-commit configuration. If that is
detected, then the lint_all step simply calls the configured
pre-commit command.

@greg-hellings greg-hellings requested a review from ssbarnea May 23, 2022 17:19
Remove explicit call to yamllint unless the user has a yamllint
configuration set. Otherwise, allow ansible-lint to handle that directly
(ansible-lint does not allow configuration of a non-standard yamllint
configuration file path, hence allowing for this flexibility)

Add support for detection of pre-commit configuration. If that is
detected, then the `lint_all` step simply calls the configured
`pre-commit` command.
@greg-hellings

Copy link
Copy Markdown
Contributor Author

@ssbarnea - does this look like it hits your pre-commit lint goals?

@greg-hellings greg-hellings changed the title Rework linting Use pre-commit when detected, otherwise use built-in lint Jun 14, 2022
@greg-hellings greg-hellings merged commit 1118b8b into main Jun 14, 2022
@greg-hellings greg-hellings deleted the remove_yamllint branch June 14, 2022 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant