This repository was archived by the owner on Feb 17, 2021. It is now read-only.
File tree 2 files changed +18
-4
lines changed
2 files changed +18
-4
lines changed Original file line number Diff line number Diff line change @@ -92,15 +92,18 @@ pip install -e .[dev]
92
92
93
93
This will also install numpy, pandas and matplotlib to be able to run the tests.
94
94
95
- ### Pre-pull request checks
95
+ ### Running CI locally (recommended)
96
96
97
- We also include a script that runs the CI checks that will be run when a PR is opened.
97
+ We include a script that runs the CI checks that will be run when a PR is opened.
98
98
To test these out locally, use the ` check_all.sh ` script.
99
99
100
100
``` bash
101
101
./check_all.sh
102
102
```
103
103
104
+ Below we describe how to run the various checks individually,
105
+ but ` check_all.sh ` should be easier to use.
106
+
104
107
### Checking compliance with Mypy
105
108
The settings for Mypy are specified in the ` mypy.ini ` file in the repository.
106
109
Just running
@@ -115,11 +118,22 @@ We use [Black][black] to format the stub files.
115
118
First install ` black ` and then run
116
119
117
120
```
118
- black -l 100 -t py36 -S .
121
+ black .
119
122
```
120
-
121
123
from the base directory.
122
124
125
+ ### Pytest
126
+
127
+ ```
128
+ python -m pytest -vv tests/
129
+ ```
130
+
131
+ ### Flake8
132
+
133
+ ```
134
+ flake8 *-stubs
135
+ ```
136
+
123
137
## License
124
138
125
139
[ Apache 2.0] ( LICENSE )
File renamed without changes.
You can’t perform that action at this time.
0 commit comments