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
{{ message }}
This repository was archived by the owner on Feb 17, 2021. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+13-3Lines changed: 13 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,7 @@
1
1
# Mypy type stubs for numpy, pandas and matplotlib
2
2
3
+
[](https://gitter.im/data-science-types/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
4
+
3
5
This is a [PEP-561][pep-561]-compliant stub-only package
4
6
which provides type information for [matplotlib][matplotlib], [numpy][numpy] and [pandas][pandas].
5
7
The [mypy][mypy] type checker (or pytype or PyCharm) can [recognize][mypy-docs] the types in these packages by installing this package.
@@ -86,16 +88,24 @@ All pull requests are subject to CI checks.
86
88
We check for compliance with Mypy and that the file formatting conforms to our Black specification.
87
89
88
90
You can install these dev dependencies via
89
-
```
90
-
pip install -e .[dev]
91
+
92
+
```bash
93
+
pip install -e '.[dev]'
91
94
```
92
95
93
96
This will also install numpy, pandas and matplotlib to be able to run the tests.
94
97
95
98
### Running CI locally (recommended)
96
99
97
100
We include a script that runs the CI checks that will be run when a PR is opened.
98
-
To test these out locally, use the `check_all.sh` script.
101
+
To test these out locally, you need to install the type stubs in your environment.
102
+
Typically, you would do this with
103
+
104
+
```bash
105
+
pip install -e .
106
+
```
107
+
108
+
Then use the `check_all.sh` script to run all tests:
0 commit comments