Skip to content

Commit 5d711b4

Browse files
henryiiigaborbernat
authored andcommitted
env: fix spelling error and check in the future
1 parent cab39f8 commit 5d711b4

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.pre-commit-config.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,8 @@ repos:
4040
- id: flake8
4141
additional_dependencies: ["flake8-bugbear == 20.1.4"]
4242
language_version: python3.9
43+
- repo: https://github.com/codespell-project/codespell
44+
rev: "v2.1.0"
45+
hooks:
46+
- id: codespell
47+
args: ["-L", "sur"]

src/build/env.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -260,9 +260,9 @@ def _create_isolated_env_venv(path: str) -> Tuple[str, str]:
260260

261261
import packaging.version
262262

263-
simlinks = _fs_supports_symlink()
263+
symlinks = _fs_supports_symlink()
264264
try:
265-
venv.EnvBuilder(with_pip=True, symlinks=simlinks).create(path)
265+
venv.EnvBuilder(with_pip=True, symlinks=symlinks).create(path)
266266
except subprocess.CalledProcessError as exc:
267267
raise build.FailedProcessError(exc, 'Failed to create venv. Maybe try installing virtualenv.') from None
268268

0 commit comments

Comments
 (0)