mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-01-13 12:30:08 -06:00
fix CI issues
This commit is contained in:
@@ -5,13 +5,13 @@ import os
|
||||
from pre_commit.languages import helpers
|
||||
from pre_commit.util import clean_path_on_failure
|
||||
from pre_commit.util import cwd
|
||||
from pre_commit.languages import helpers
|
||||
from pre_commit.xargs import xargs
|
||||
|
||||
ENVIRONMENT_DIR = 'swift_env'
|
||||
BUILD_DIR = '.build'
|
||||
BUILD_CONFIG = 'release'
|
||||
|
||||
|
||||
def install_environment(
|
||||
repo_cmd_runner,
|
||||
version='default',
|
||||
@@ -31,6 +31,7 @@ def install_environment(
|
||||
'--build-path', os.path.join(directory, BUILD_DIR),
|
||||
))
|
||||
|
||||
|
||||
def run_hook(repo_cmd_runner, hook, file_args):
|
||||
directory = repo_cmd_runner.path(helpers.environment_dir(
|
||||
ENVIRONMENT_DIR, 'default',
|
||||
|
||||
Reference in New Issue
Block a user