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

Commit 8cd3382

Browse files
author
John Andersen
committed
HACKING: Re-add
Signed-off-by: John Andersen <[email protected]>
1 parent bdefa36 commit 8cd3382

File tree

1 file changed

+63
-0
lines changed

1 file changed

+63
-0
lines changed

HACKING.md

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# Hacking on DFFML
2+
3+
Install in development mode via pip.
4+
5+
```console
6+
git clone https://github.com/intel/dffml
7+
cd dffml
8+
pip install --user -e .
9+
```
10+
11+
If you are working on Git features or Tensorflow models, `cd` into those
12+
directories and do the same.
13+
14+
```console
15+
cd model/tensorflow
16+
pip install --user -e .
17+
cd -
18+
cd feature/git
19+
pip install --user -e .
20+
```
21+
22+
# Git
23+
24+
Be sure to checkout a new branch to do your work on.
25+
26+
```console
27+
git checkout origin/master
28+
git pull
29+
git checkout -b my_new_thing origin/master
30+
```
31+
32+
You'll need to fork the repo on GitHub too. Then add that as a remote.
33+
34+
```console
35+
# $USER in this case would be your github username
36+
git remote add $USER [email protected]:$USER/dffml
37+
```
38+
39+
Once you've commited a change on that branch you can push it to your fork.
40+
41+
```console
42+
git push -u $USER my_new_thing
43+
```
44+
45+
Then you can keep commiting on this branch and just use `git push` to send your
46+
new commits to GitHub.
47+
48+
# Testing
49+
50+
```console
51+
python3.7 setup.py test
52+
```
53+
54+
# Check the Report for Unit Test Coverage
55+
56+
These commands will generate a folder `htmlcov`, you can check the report by
57+
opening the `index.html` in a web browser.
58+
59+
```console
60+
coverage run setup.py test
61+
coverage report
62+
coverage html
63+
```

0 commit comments

Comments
 (0)