diff --git a/.github/workflows/python_build.yml b/.github/workflows/python_build.yml index bc2f20cc9a..ce4a58c844 100644 --- a/.github/workflows/python_build.yml +++ b/.github/workflows/python_build.yml @@ -18,11 +18,11 @@ jobs: - name: Setup Python uses: actions/setup-python@v2 with: - python-version: 3.8 + python-version: "3.10" - name: Check Python run: | - pip install ruff black mypy types-dataclasses typing-extensions + pip install ruff==0.5.2 mypy==1.10.1 types-dataclasses typing-extensions make check-python - name: Install minimal stable with clippy and rustfmt diff --git a/python/pyproject.toml b/python/pyproject.toml index c02b341dba..6f6291435f 100644 --- a/python/pyproject.toml +++ b/python/pyproject.toml @@ -28,8 +28,6 @@ pandas = [ ] devel = [ "azure-storage-blob==12.20.0", - "mypy~=1.8.0", - "ruff~=0.5.2", "packaging>=20", "pytest", "pytest-mock", @@ -39,7 +37,10 @@ devel = [ "sphinx-rtd-theme", "toml", "wheel", - "pytest-benchmark" + "pytest-benchmark", + # keep ruff and mypy versions in sync with .github/workflows/python_build.yml + "mypy==1.10.1", + "ruff==0.5.2" ] pyspark = [ "pyspark",