We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8893127 commit b271060Copy full SHA for b271060
1 file changed
pre_commit/languages/swift.py
@@ -5,13 +5,13 @@
5
from pre_commit.languages import helpers
6
from pre_commit.util import clean_path_on_failure
7
from pre_commit.util import cwd
8
-from pre_commit.languages import helpers
9
from pre_commit.xargs import xargs
10
11
ENVIRONMENT_DIR = 'swift_env'
12
BUILD_DIR = '.build'
13
BUILD_CONFIG = 'release'
14
+
15
def install_environment(
16
repo_cmd_runner,
17
version='default',
@@ -31,6 +31,7 @@ def install_environment(
31
'--build-path', os.path.join(directory, BUILD_DIR),
32
))
33
34
35
def run_hook(repo_cmd_runner, hook, file_args):
36
directory = repo_cmd_runner.path(helpers.environment_dir(
37
ENVIRONMENT_DIR, 'default',
0 commit comments