mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-05 11:36:54 +00:00
Ensure tox gets proper language settings.
If LC_ALL is not passed then the interpreter will assume it is C (which causes the interpreter to use ASCII). This, in turn, causes the unicode in various places to trigger a UnicodeDecodeError exception. CI workers have that locale set by default. Some people do not have that locale setting set properly.
This commit is contained in:
parent
20baf1a22a
commit
ec38740854
1 changed files with 1 additions and 0 deletions
1
tox.ini
1
tox.ini
|
|
@ -11,6 +11,7 @@ setenv =
|
|||
GIT_COMMITTER_NAME = "test"
|
||||
GIT_AUTHOR_EMAIL = "test@example.com"
|
||||
GIT_COMMITTER_EMAIL = "test@example.com"
|
||||
LC_ALL=en_US.UTF-8
|
||||
commands =
|
||||
coverage erase
|
||||
coverage run -m pytest {posargs:tests}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue