From df79b0f037fdb391ec4ae6403e60183044530583 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 13 Apr 2022 08:13:07 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- pre_commit/languages/powershell.py | 1 + testing/gen-languages-all | 2 +- testing/resources/powershell_repo/.pre-commit-hooks.yaml | 2 +- testing/resources/powershell_repo/test-script.ps1 | 2 +- tests/repository_test.py | 1 + 5 files changed, 5 insertions(+), 3 deletions(-) diff --git a/pre_commit/languages/powershell.py b/pre_commit/languages/powershell.py index 081c6930..110efe99 100644 --- a/pre_commit/languages/powershell.py +++ b/pre_commit/languages/powershell.py @@ -11,6 +11,7 @@ get_default_version = helpers.basic_get_default_version healthy = helpers.basic_healthy install_environment = helpers.no_install + def run_hook( hook: Hook, file_args: Sequence[str], diff --git a/testing/gen-languages-all b/testing/gen-languages-all index d40c79fc..a2a54d90 100755 --- a/testing/gen-languages-all +++ b/testing/gen-languages-all @@ -5,7 +5,7 @@ import sys LANGUAGES = [ 'conda', 'coursier', 'dart', 'docker', 'docker_image', 'dotnet', 'fail', - 'golang', 'lua', 'node', 'perl', 'powershell', 'pygrep', 'python', 'r', + 'golang', 'lua', 'node', 'perl', 'powershell', 'pygrep', 'python', 'r', 'ruby', 'rust', 'script', 'swift', 'system', ] FIELDS = [ diff --git a/testing/resources/powershell_repo/.pre-commit-hooks.yaml b/testing/resources/powershell_repo/.pre-commit-hooks.yaml index 32d60a6d..1eeaa210 100644 --- a/testing/resources/powershell_repo/.pre-commit-hooks.yaml +++ b/testing/resources/powershell_repo/.pre-commit-hooks.yaml @@ -3,4 +3,4 @@ description: Test Powershell Project entry: test-script.ps1 language: powershell - stages: [commit] \ No newline at end of file + stages: [commit] diff --git a/testing/resources/powershell_repo/test-script.ps1 b/testing/resources/powershell_repo/test-script.ps1 index 92d8d50d..6c738ec4 100644 --- a/testing/resources/powershell_repo/test-script.ps1 +++ b/testing/resources/powershell_repo/test-script.ps1 @@ -1,2 +1,2 @@ Write-Output "Hello from Powershell" -exit 0 \ No newline at end of file +exit 0 diff --git a/tests/repository_test.py b/tests/repository_test.py index c6280715..5779b6fd 100644 --- a/tests/repository_test.py +++ b/tests/repository_test.py @@ -1163,6 +1163,7 @@ def test_local_lua_additional_dependencies(store): assert b'Luacheck' in out assert ret == 0 + @pytest.mark.parametrize( 'repo', (