From c1db293575f6deec8e383e185e0a8c16663c5067 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Mond=C3=A9jar=20Rubio?= Date: Sun, 11 Aug 2024 01:26:11 +0200 Subject: [PATCH] Add official support for Python 3.13 (#227) --- .github/workflows/ci.yml | 1 + .github/workflows/pre-commit-autoupdate.yml | 2 +- .pre-commit-config.yaml | 6 +++--- pyproject.toml | 17 +++++++++-------- 4 files changed, 14 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 787df18..900013b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,6 +36,7 @@ jobs: - "3.10" - "3.11" - "3.12" + - 3.13.0-rc.1 platform: - ubuntu-latest - macos-latest diff --git a/.github/workflows/pre-commit-autoupdate.yml b/.github/workflows/pre-commit-autoupdate.yml index d5e2a86..351059e 100644 --- a/.github/workflows/pre-commit-autoupdate.yml +++ b/.github/workflows/pre-commit-autoupdate.yml @@ -17,7 +17,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.11" + python-version: "3.12" - name: Install pre-commit run: pip install pre-commit - name: Run pre-commit autoupdate diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6d6fdc7..f8d96a4 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -33,7 +33,7 @@ repos: - id: end-of-file-fixer name: end-of-file-fixer - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.4.10 + rev: v0.5.7 hooks: - id: ruff args: @@ -79,7 +79,7 @@ repos: name: editorconfig-checker alias: ec - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.10.0 + rev: v1.11.1 hooks: - id: mypy name: mypy-mkdocs-1.5.0 @@ -89,7 +89,7 @@ repos: - platformdirs - wcmatch - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.10.0 + rev: v1.11.1 hooks: - id: mypy name: mypy-mkdocs-1.6.0 diff --git a/pyproject.toml b/pyproject.toml index eba0d24..308b4f3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "mkdocs-include-markdown-plugin" -version = "6.2.1" +version = "6.2.2" description = "Mkdocs Markdown includer plugin." readme = "README.md" license = "Apache-2.0" @@ -19,12 +19,13 @@ classifiers = [ "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", - "Programming Language :: Python :: 3.12" + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", ] keywords = ["markdown", "mkdocs", "includer", "plugin"] dependencies = [ "mkdocs>=1.4", - "wcmatch>=8,<9" + "wcmatch" ] [[project.authors]] @@ -73,7 +74,7 @@ matrix-name-format = "{variable}-{value}" dependencies = ["pytest~=7.0", "coverage~=6.4", "covdefaults"] [[tool.hatch.envs.tests.matrix]] -python = ["py38", "py39", "py310", "py311", "py312"] +python = ["py38", "py39", "py310", "py311", "py312", "py313"] mkdocs = ["1.4.0", "1.4.3", "1.5.0", "1.5.3", "1.6.0"] cache = ["yes", "no"] @@ -104,9 +105,9 @@ targets = [{ file = "pyproject.toml" }] [tool.project-config] cache = "2 days" style = [ - "gh://mondeja/project-config-styles@v5.2.1/base/pre-commit/md2po2md.json5", - "gh://mondeja/project-config-styles@v5.2.1/python/base.json5", - "gh://mondeja/project-config-styles@v5.2.1/python/mypy.json5", + "gh://mondeja/project-config-styles@v5.3/base/pre-commit/md2po2md.json5", + "gh://mondeja/project-config-styles@v5.3/python/base.json5", + "gh://mondeja/project-config-styles@v5.3/python/mypy.json5", ] [tool.coverage.run] @@ -203,7 +204,7 @@ extra-standard-library = [ [tool.mypy] strict = true -python_version = "3.11" +python_version = "3.12" allow_untyped_calls = true allow_any_generics = true