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
Copy file name to clipboardExpand all lines: README.md
+43-4Lines changed: 43 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,7 @@ The table below shows the corresponding versions between pystac and STAC:
35
35
36
36
| pystac | STAC |
37
37
| ------ | ---- |
38
-
| 0.2.x | 0.8.x |
38
+
| 0.3.x | 0.8.x |
39
39
40
40
## Documentation
41
41
@@ -49,18 +49,57 @@ To ensure development libraries are installed, install everything in `requiremen
49
49
> pip install -r requirements-dev.txt
50
50
```
51
51
52
+
### Unit Tests
53
+
52
54
Unit tests are in the `tests` folder. To run unit tests, use `unittest`:
53
55
54
56
```
55
57
> python -m unittest discover tests
56
58
```
57
59
58
-
## Running the tutorials
60
+
### Code quality checks
61
+
62
+
PySTAC uses [flake8](http://flake8.pycqa.org/en/latest/) and [yapf](https://github.com/google/yapf) for code formatting and style checks.
63
+
64
+
To run the flake8 style checks:
65
+
66
+
```
67
+
> flake8 pystac
68
+
> flake8 tests
69
+
```
59
70
60
-
There are tutorials written as jupyter notebooks in the `tutorials` folder. To run them, run a jupyter notebook with the `tutorials` directory as the notebook directory:
You could also run the `.travis/style_checks` script to check flake8 and yapf.
79
+
80
+
### Documentation
81
+
82
+
To build and develop the documentation locally, make sure sphinx is available (which is installed with `requirementts-dev.txt`), and use the Makefile in the docs folder:
83
+
64
84
```
85
+
> cd docs
86
+
> make html
87
+
> make livehtml
88
+
```
89
+
90
+
Use 'make' without arguments to see a list of available commands.
91
+
92
+
93
+
94
+
## Runing the quickstart and tutorials
95
+
96
+
There is a quickstart and tutorials written as jupyter notebooks in the `docs/tutorials` folder.
97
+
To run the notebooks, run a jupyter notebook with the `docs` directory as the notebook directory:
0 commit comments