mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 16:24:40 +04:00
Add integration test for existing install behaviour
This commit is contained in:
parent
332e8b480b
commit
4b43fd8cdc
4 changed files with 60 additions and 1 deletions
|
|
@ -22,7 +22,10 @@ def _get_default_directory():
|
|||
`Store.get_default_directory` can be mocked in tests and
|
||||
`_get_default_directory` can be tested.
|
||||
"""
|
||||
return os.path.join(os.environ['HOME'], '.pre-commit')
|
||||
return os.environ.get(
|
||||
'PRE_COMMIT_HOME',
|
||||
os.path.join(os.environ['HOME'], '.pre-commit'),
|
||||
)
|
||||
|
||||
|
||||
class Store(object):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue