mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +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.languages import helpers
|
||||||
from pre_commit.util import clean_path_on_failure
|
from pre_commit.util import clean_path_on_failure
|
||||||
from pre_commit.util import cwd
|
from pre_commit.util import cwd
|
||||||
from pre_commit.languages import helpers
|
|
||||||
from pre_commit.xargs import xargs
|
from pre_commit.xargs import xargs
|
||||||
|
|
||||||
ENVIRONMENT_DIR = 'swift_env'
|
ENVIRONMENT_DIR = 'swift_env'
|
||||||
BUILD_DIR = '.build'
|
BUILD_DIR = '.build'
|
||||||
BUILD_CONFIG = 'release'
|
BUILD_CONFIG = 'release'
|
||||||
|
|
||||||
|
|
||||||
def install_environment(
|
def install_environment(
|
||||||
repo_cmd_runner,
|
repo_cmd_runner,
|
||||||
version='default',
|
version='default',
|
||||||
|
|
@ -31,6 +31,7 @@ def install_environment(
|
||||||
'--build-path', os.path.join(directory, BUILD_DIR),
|
'--build-path', os.path.join(directory, BUILD_DIR),
|
||||||
))
|
))
|
||||||
|
|
||||||
|
|
||||||
def run_hook(repo_cmd_runner, hook, file_args):
|
def run_hook(repo_cmd_runner, hook, file_args):
|
||||||
directory = repo_cmd_runner.path(helpers.environment_dir(
|
directory = repo_cmd_runner.path(helpers.environment_dir(
|
||||||
ENVIRONMENT_DIR, 'default',
|
ENVIRONMENT_DIR, 'default',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue