You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
4. install packages from repo: `pip3 install -e ".[dev]"`
95
-
5. create script on top level of `ROBOFLOW-PYTHON` and reference local `roboflow` directory: `from roboflow import Roboflow`
96
-
6. when done, uptick the pip package minor version number in `setup.py`
97
-
7. manually add any new dependencies to the `requirements.txt` and list of dependencies in `setup.py` (careful not to overwrite any packages that might screw up backwards dependencies for object detection, etc.)
90
+
## Developing locally
98
91
99
-
### Code Quality
92
+
### Using Docker
100
93
101
-
We provide a `Makefile` to format and ensure code quality. **Be sure to run them before creating a PR**.
94
+
To set the Docker container up for the first time:
Then, assuming you have installed the `dev` packages (`pip install -e ".[dev]`), you can run the tests
148
+
Run tests:
123
149
124
150
```bash
125
-
126
151
python -m unittest
127
152
```
153
+
154
+
### Contributing
155
+
156
+
1. Increment the pip package minor version number in `setup.py`
157
+
1. Manually add any new dependencies to `requirements.txt` and list of dependencies in `setup.py` (Be careful not to overwrite any packages that might screw up backwards dependencies for object detection, etc.)
158
+
159
+
### Code Quality
160
+
161
+
We provide a `Makefile` to format and ensure code quality. **Be sure to run them before creating a PR**.
162
+
163
+
```
164
+
# format your code with `black` and `isort` run
165
+
make style
166
+
# check code with flake8
167
+
make check_code_quality
168
+
```
169
+
170
+
**Note** These tests will be run automatically when you commit thanks to git hooks.
0 commit comments