Fix git issue with docker
Fix "An error has occurred: FatalError: git failed. Is it installed, and are you in a Git repository directory?" while running with docker tox docker run -v `pwd`:/tests -it --rm 31z4/tox tox -e style
This commit is contained in:
parent
cb825687a5
commit
f7f220ad3f
1 changed files with 2 additions and 0 deletions
2
tox.ini
2
tox.ini
|
|
@ -31,6 +31,8 @@ commands = pytest -v --tb=short --basetemp={envtmpdir} {posargs:tests}
|
|||
[testenv:style]
|
||||
deps = pre-commit
|
||||
skip_install = true
|
||||
allowlist_externals = git
|
||||
commands_pre = git config --global --add safe.directory '*'
|
||||
commands = pre-commit run --all-files
|
||||
|
||||
[testenv:typing]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue