From 3ad23dcb4f2def0abfbe6c0eb6af800814da58aa Mon Sep 17 00:00:00 2001 From: Kostis-S-Z Date: Thu, 4 Dec 2025 13:30:38 +0200 Subject: [PATCH 1/3] Bump Python version to 3.11 --- .github/workflows/docs.yml | 2 +- .github/workflows/publish.yml | 2 +- .github/workflows/tests.yml | 4 ++-- .pre-commit-config.yaml | 2 +- pyproject.toml | 8 ++++---- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 99c7642..41b9fa5 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -28,7 +28,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: '3.9' + python-version: '3.11' cache: "pip" - name: Configure git run: | diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 6936dac..5692990 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -39,7 +39,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.9" + python-version: "3.11" - name: Install uv uses: astral-sh/setup-uv@v1 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 8c3f04a..8874a2a 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -26,7 +26,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: '3.9' + python-version: '3.11' cache: "pip" - name: Install test dependencies @@ -51,7 +51,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: '3.9' + python-version: '3.11' cache: "pip" - name: Install test dependencies diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index bf9074c..b092ace 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,7 +3,7 @@ repos: rev: 25.11.0 hooks: - id: black - language_version: python3.9 + language_version: python3.11 - repo: https://github.com/astral-sh/ruff-pre-commit rev: v0.14.6 diff --git a/pyproject.toml b/pyproject.toml index 4cbaf47..fdcbaba 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -16,7 +16,7 @@ authors = [ ] description = "A Python package for interfacing with the Mozilla Data Collective's API" readme = "README.md" -requires-python = ">=3.9" +requires-python = ">=3.11" classifiers = [ "Programming Language :: Python :: 3", "Operating System :: OS Independent", @@ -54,7 +54,7 @@ typecheck = "mypy:__main__" # Black configuration [tool.black] line-length = 88 -target-version = ['py39'] +target-version = ['py311'] include = '\.pyi?$' extend-exclude = ''' /( @@ -72,7 +72,7 @@ extend-exclude = ''' # Ruff configuration (fast linter) [tool.ruff] -target-version = "py39" +target-version = "py311" line-length = 88 [tool.ruff.lint] @@ -96,7 +96,7 @@ ignore = [ # MyPy configuration [tool.mypy] -python_version = "3.9" +python_version = "3.11" warn_return_any = true warn_unused_configs = true disallow_untyped_defs = true From 6d44b5850dd429c89160f1d97fba495c28d6d7ac Mon Sep 17 00:00:00 2001 From: Kostis-S-Z Date: Thu, 4 Dec 2025 13:47:23 +0200 Subject: [PATCH 2/3] Bump requests version --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index fdcbaba..b36ff3a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,7 +9,7 @@ dependencies = [ "fox-progress-bar>=0.1.1", "pandas>=2.0.0", "python-dotenv>=1.0.0", - "requests>=2.0.0", + "requests>=2.32.5", ] authors = [ { name="Mozilla Data Collective", email="mozilladatacollective@mozillafoundation.org"}, From ddb630634200970dfef2c8101d7a8b8d661ff89a Mon Sep 17 00:00:00 2001 From: Kostis-S-Z Date: Thu, 4 Dec 2025 13:48:26 +0200 Subject: [PATCH 3/3] Remove black, mypy, ruff from dev group --- pyproject.toml | 3 --- 1 file changed, 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index b36ff3a..59d43b1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -28,9 +28,6 @@ license-files = ["LICENSE*"] dev = [ "pytest>=7.0.0", "pytest-cov>=4.0.0", - "black>=23.0.0", - "ruff>=0.1.0", - "mypy>=1.0.0", "pre-commit>=3.0.0", "bump2version>=1.0.0", ]