Skip to content
This repository has been archived by the owner on Oct 9, 2024. It is now read-only.

Commit

Permalink
chore: pre-commit autoupdate (#597)
Browse files Browse the repository at this point in the history
* chore: pre-commit autoupdate

updates:
- [github.com/streetsidesoftware/cspell-cli: v6.31.0 → v7.3.0](streetsidesoftware/cspell-cli@v6.31.0...v7.3.0)
- [github.com/pre-commit/mirrors-prettier: v3.0.0-alpha.9-for-vscode → v3.0.3](pre-commit/mirrors-prettier@v3.0.0-alpha.9-for-vscode...v3.0.3)
- [github.com/igorshubovych/markdownlint-cli: v0.35.0 → v0.36.0](igorshubovych/markdownlint-cli@v0.35.0...v0.36.0)
- [github.com/pre-commit/mirrors-eslint: v8.44.0 → v8.48.0](pre-commit/mirrors-eslint@v8.44.0...v8.48.0)

* chore: auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored Sep 15, 2023
1 parent e0a17f5 commit a59e3b0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ repos:
files: "codecov.yml"
pass_filenames: false
- repo: https://github.com/streetsidesoftware/cspell-cli
rev: v6.31.0
rev: v7.3.0
hooks:
- id: cspell
name: Spell check with cspell
Expand Down Expand Up @@ -88,11 +88,11 @@ repos:
language_version: python3
- repo: https://github.com/pre-commit/mirrors-prettier
# keep it before markdownlint and eslint
rev: "v3.0.0-alpha.9-for-vscode"
rev: "v3.0.3"
hooks:
- id: prettier
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.35.0
rev: v0.36.0
hooks:
- id: markdownlint
exclude: >
Expand All @@ -101,7 +101,7 @@ repos:
docs/settings.md
$
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v8.44.0
rev: v8.48.0
hooks:
- id: eslint
args:
Expand Down
10 changes: 4 additions & 6 deletions src/providers/validationProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,8 @@ export async function doValidate(
const lintExecutable = settings.executionEnvironment.enabled
? "ansible-lint"
: settings.validation.lint.path;
const lintAvailability = await commandRunner.getExecutablePath(
lintExecutable,
);
const lintAvailability =
await commandRunner.getExecutablePath(lintExecutable);
console.debug("Path for lint: ", lintAvailability);

if (lintAvailability) {
Expand All @@ -73,9 +72,8 @@ export async function doValidate(

if (isPlaybook(textDocument)) {
console.debug("playbook file");
diagnosticsByFile = await context.ansiblePlaybook.doValidate(
textDocument,
);
diagnosticsByFile =
await context.ansiblePlaybook.doValidate(textDocument);
} else {
console.debug("non-playbook file");
diagnosticsByFile = new Map<string, Diagnostic[]>();
Expand Down

0 comments on commit a59e3b0

Please sign in to comment.