File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -265,7 +265,11 @@ pandas uses `mypy <http://mypy-lang.org>`_ and `pyright <https://github.com/micr
265
265
266
266
.. code-block :: shell
267
267
268
- pre-commit run --hook-stage manual --all-files
268
+ # the following might fail if the installed pandas version does not correspond to your local git version
269
+ pre-commit run --hook-stage manual --all-files
270
+
271
+ # if the above fails due to stubtest
272
+ SKIP=stubtest pre-commit run --hook-stage manual --all-files
269
273
270
274
in your activated python environment. A recent version of ``numpy `` (>=1.22.0) is required for type validation.
271
275
Original file line number Diff line number Diff line change 9
9
import pandas as pd
10
10
11
11
# fail early if pandas is not installed
12
- if "dev" not in getattr (pd , "__version__" , "" ):
12
+ if not getattr (pd , "__version__" , "" ):
13
13
# fail on the CI, soft fail during local development
14
14
warnings .warn ("You need to install the development version of pandas" )
15
15
if pd .compat .is_ci_environment ():
You can’t perform that action at this time.
0 commit comments