Skip to content
This repository was archived by the owner on Aug 10, 2022. It is now read-only.

Commit 1dd6b32

Browse files
committed
Add inv tasks for managing pre-hook installation
1 parent b4c00a7 commit 1dd6b32

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

README.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
|Build Status||Black Formatter|
1+
|Build Status| |Black Formatter|
22

33
Eyes.Sdk.Python
44
===============
@@ -34,7 +34,7 @@ Development
3434

3535
For smother development experience install Invoke for task run first
3636

37-
::
37+
::
3838

3939
pip install invoke
4040
inv install-requirements # install libs required for development
@@ -50,6 +50,6 @@ Testing
5050
For local testing, for example, images sdk
5151

5252
::
53-
53+
5454
inv install-packages -core -images
5555
inv test-run -images

tasks.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,3 +129,12 @@ def test_run_packs(c, core=None, selenium=None, images=None, appium=None):
129129
@task
130130
def test_run_integration(c):
131131
c.run("pytest tests/test_integration.py")
132+
133+
134+
def install_precommit_hook(c):
135+
c.run("pip install pre-commit")
136+
c.run("pre-commit install")
137+
138+
139+
def remove_precommit_hook(c):
140+
c.run("pre-commit uninstall")

0 commit comments

Comments
 (0)