Skip to content

Commit 0042cfc

Browse files
twoertweinyehoshuadimarsky
authored andcommitted
CI: bump type checker versions (pandas-dev#45461)
1 parent a85af94 commit 0042cfc

File tree

6 files changed

+8
-7
lines changed

6 files changed

+8
-7
lines changed

.github/workflows/code-checks.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474

7575
- name: Install pyright
7676
# note: keep version in sync with .pre-commit-config.yaml
77-
run: npm install -g [email protected].202
77+
run: npm install -g [email protected].212
7878

7979
- name: Build Pandas
8080
id: build

.pre-commit-config.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ repos:
8484
pass_filenames: false
8585
types: [python]
8686
stages: [manual]
87-
# note: keep version in sync with .github/workflows/ci.yml
88-
additional_dependencies: ['[email protected].202']
87+
# note: keep version in sync with .github/workflows/code-checks.yml
88+
additional_dependencies: ['[email protected].212']
8989
- repo: local
9090
hooks:
9191
- id: flake8-rst

doc/source/whatsnew/v1.5.0.rst

+2-1
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,10 @@ If installed, we now require:
7272
+-----------------+-----------------+----------+---------+
7373
| Package | Minimum Version | Required | Changed |
7474
+=================+=================+==========+=========+
75-
| | | X | X |
75+
| mypy (dev) | 0.931 | | X |
7676
+-----------------+-----------------+----------+---------+
7777

78+
7879
For `optional libraries <https://pandas.pydata.org/docs/getting_started/install.html>`_ the general recommendation is to use the latest version.
7980
The following table lists the lowest version per library that is currently being tested throughout the development of pandas.
8081
Optional libraries below the lowest tested version may still work, but are not considered supported.

environment.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ dependencies:
2424
- flake8-bugbear=21.3.2 # used by flake8, find likely bugs
2525
- flake8-comprehensions=3.7.0 # used by flake8, linting of unnecessary comprehensions
2626
- isort>=5.2.1 # check that imports are in the right order
27-
- mypy=0.930
27+
- mypy=0.931
2828
- pre-commit>=2.9.2
2929
- pycodestyle # used by flake8
3030
- pyupgrade

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ skip = "pandas/__init__.py"
149149

150150
[tool.pyright]
151151
pythonVersion = "3.8"
152-
typeCheckingMode = "strict"
152+
typeCheckingMode = "basic"
153153
include = ["pandas", "typings"]
154154
exclude = ["pandas/tests", "pandas/io/clipboard", "pandas/util/version"]
155155
reportGeneralTypeIssues = false

requirements-dev.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ flake8==4.0.1
1212
flake8-bugbear==21.3.2
1313
flake8-comprehensions==3.7.0
1414
isort>=5.2.1
15-
mypy==0.930
15+
mypy==0.931
1616
pre-commit>=2.9.2
1717
pycodestyle
1818
pyupgrade

0 commit comments

Comments
 (0)