diff --git a/.github/workflows/code-checks.yml b/.github/workflows/code-checks.yml index 7141b02cac376..8a74ae14404b3 100644 --- a/.github/workflows/code-checks.yml +++ b/.github/workflows/code-checks.yml @@ -74,7 +74,7 @@ jobs: - name: Install pyright # note: keep version in sync with .pre-commit-config.yaml - run: npm install -g pyright@1.1.202 + run: npm install -g pyright@1.1.212 - name: Build Pandas id: build diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f72450a18312e..6de9bd786404f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -84,8 +84,8 @@ repos: pass_filenames: false types: [python] stages: [manual] - # note: keep version in sync with .github/workflows/ci.yml - additional_dependencies: ['pyright@1.1.202'] + # note: keep version in sync with .github/workflows/code-checks.yml + additional_dependencies: ['pyright@1.1.212'] - repo: local hooks: - id: flake8-rst diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index fa19a49b7ff45..94edbdea8e72c 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -72,9 +72,10 @@ If installed, we now require: +-----------------+-----------------+----------+---------+ | Package | Minimum Version | Required | Changed | +=================+=================+==========+=========+ -| | | X | X | +| mypy (dev) | 0.931 | | X | +-----------------+-----------------+----------+---------+ + For `optional libraries `_ the general recommendation is to use the latest version. The following table lists the lowest version per library that is currently being tested throughout the development of pandas. Optional libraries below the lowest tested version may still work, but are not considered supported. diff --git a/environment.yml b/environment.yml index 15dd329f80deb..5e8e9bbba56e7 100644 --- a/environment.yml +++ b/environment.yml @@ -24,7 +24,7 @@ dependencies: - flake8-bugbear=21.3.2 # used by flake8, find likely bugs - flake8-comprehensions=3.7.0 # used by flake8, linting of unnecessary comprehensions - isort>=5.2.1 # check that imports are in the right order - - mypy=0.930 + - mypy=0.931 - pre-commit>=2.9.2 - pycodestyle # used by flake8 - pyupgrade diff --git a/pyproject.toml b/pyproject.toml index c858465bc79d2..c3ed07defa60d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -149,7 +149,7 @@ skip = "pandas/__init__.py" [tool.pyright] pythonVersion = "3.8" -typeCheckingMode = "strict" +typeCheckingMode = "basic" include = ["pandas", "typings"] exclude = ["pandas/tests", "pandas/io/clipboard", "pandas/util/version"] reportGeneralTypeIssues = false diff --git a/requirements-dev.txt b/requirements-dev.txt index f199d084371d9..5713cde0ce1af 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -12,7 +12,7 @@ flake8==4.0.1 flake8-bugbear==21.3.2 flake8-comprehensions==3.7.0 isort>=5.2.1 -mypy==0.930 +mypy==0.931 pre-commit>=2.9.2 pycodestyle pyupgrade