mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-18 00:24:47 +04:00
fix CI issues
This commit is contained in:
parent
8893127f27
commit
b271060aef
1 changed files with 2 additions and 1 deletions
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue