From c5d3c6c1737e853de8ee32600f15641135fdf003 Mon Sep 17 00:00:00 2001 From: Christophe Demko Date: Tue, 22 Oct 2024 16:16:20 +0200 Subject: [PATCH 1/3] Use actions/setup-python@v5 --- .github/workflows/python-package.yml | 8 ++++---- .github/workflows/python-publish.yml | 2 +- uv.lock | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index e7dfd92..84f99ef 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -19,7 +19,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Install Hatch @@ -41,7 +41,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Install Hatch @@ -63,7 +63,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Install Hatch @@ -88,7 +88,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Install Hatch diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 07c532c..2c0290a 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -18,7 +18,7 @@ jobs: with: fetch-depth: 0 - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Install Hatch diff --git a/uv.lock b/uv.lock index 8c46571..722854a 100644 --- a/uv.lock +++ b/uv.lock @@ -24,7 +24,7 @@ wheels = [ [[package]] name = "pandoc-figure" -version = "0.1.0.4.post1.dev1" +version = "0.1.0.5.post1.dev1" source = { editable = "." } dependencies = [ { name = "panflute" }, From 98d4564e99222097315e5299ed23065aaf285b88 Mon Sep 17 00:00:00 2001 From: Christophe Demko Date: Tue, 22 Oct 2024 17:01:14 +0200 Subject: [PATCH 2/3] Fix date --- docs/conf.py | 2 +- uv.lock | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 1a6240b..fd9baf4 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -14,7 +14,7 @@ version = os.popen("hatch version").readline().strip() # noqa: S605, S607 year = datetime.datetime.now(tz=datetime.UTC).date().year # noinspection PyShadowingBuiltins -copyright = f"2019-{year}, {author}" # noqa: A001 +copyright = f"2023-{year}, {author}" # noqa: A001 python_path = str(Path("..").resolve()) sys.path.insert(0, python_path) diff --git a/uv.lock b/uv.lock index 722854a..ea8ddda 100644 --- a/uv.lock +++ b/uv.lock @@ -24,7 +24,7 @@ wheels = [ [[package]] name = "pandoc-figure" -version = "0.1.0.5.post1.dev1" +version = "0.1.0.5.post1.dev2" source = { editable = "." } dependencies = [ { name = "panflute" }, From a7dc114df6bebe5c57d78cc3d9cc949b13f59545 Mon Sep 17 00:00:00 2001 From: Christophe Demko Date: Tue, 17 Dec 2024 12:15:17 +0100 Subject: [PATCH 3/3] Support pandoc 3.6 --- .github/workflows/python-package.yml | 8 ++++---- README.md | 5 +++-- pyproject.toml | 26 ++++++++++++++------------ uv.lock | 2 +- 4 files changed, 22 insertions(+), 19 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 84f99ef..25301d3 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -15,7 +15,7 @@ jobs: strategy: matrix: python-version: ['3.10', '3.11', '3.12', '3.13'] - pandoc-version: ['3.5'] + pandoc-version: ['3.6'] steps: - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} @@ -37,7 +37,7 @@ jobs: strategy: matrix: python-version: ['3.12'] - pandoc-version: [3.0.1, 3.1.13, 3.2.1, '3.3', '3.4', '3.5'] + pandoc-version: [3.0.1, 3.1.13, 3.2.1, '3.3', '3.4', '3.5', '3.6'] steps: - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} @@ -59,7 +59,7 @@ jobs: strategy: matrix: python-version: ['3.12'] - pandoc-version: ['3.5'] + pandoc-version: ['3.6'] steps: - uses: actions/checkout@v4 - name: Set up Python @@ -84,7 +84,7 @@ jobs: strategy: matrix: python-version: ['3.12'] - pandoc-version: ['3.5'] + pandoc-version: ['3.6'] steps: - uses: actions/checkout@v4 - name: Set up Python diff --git a/README.md b/README.md index c9d4fbd..49ebcae 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,13 @@ Installation ============ -[![Python package](https://github.com/chdemko/pandoc-figure/workflows/Python%20package/badge.svg?branch=develop)](https://github.com/chdemko/pandoc-figure/actions/workflows/python-package.yml) +[![Python package](https://img.shields.io/github/actions/workflow/status/chdemko/pandoc-figure/python-package.yml?logo=github&branch=develop)](https://github.com/chdemko/pandoc-figure/actions/workflows/python-package.yml) [![Hatch project](https://img.shields.io/badge/%F0%9F%A5%9A-Hatch-4051b5.svg)](https://github.com/pypa/hatch) [![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit)](https://github.com/pre-commit/pre-commit) [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://pypi.org/project/black/) [![Coveralls](https://img.shields.io/coveralls/github/chdemko/pandoc-figure/develop.svg?logo=Codecov&logoColor=white)](https://coveralls.io/github/chdemko/pandoc-figure?branch=develop) [![Scrutinizer](https://img.shields.io/scrutinizer/g/chdemko/pandoc-figure.svg?logo=scrutinizer)](https://scrutinizer-ci.com/g/chdemko/pandoc-figure/) +[![Code Climate](https://img.shields.io/codeclimate/maintainability/chdemko/pandoc-figure?logo=codeclimate&barnch=develop)](https://codeclimate.com/github/chdemko/pandoc-figure/) [![Code Climate](https://codeclimate.com/github/chdemko/pandoc-figure/badges/gpa.svg)](https://codeclimate.com/github/chdemko/pandoc-figure/) [![CodeFactor](https://img.shields.io/codefactor/grade/github/chdemko/pandoc-figure/develop.svg?logo=codefactor)](https://www.codefactor.io/repository/github/chdemko/pandoc-figure) [![Codacy](https://img.shields.io/codacy/grade/36051716c52147bca7a7f4c1ca6bc998.svg?logo=codacy)](https://app.codacy.com/gh/chdemko/pandoc-figure/dashboard) @@ -16,7 +17,7 @@ Installation [![Downloads](https://img.shields.io/pypi/dm/pandoc-figure?logo=pypi&logoColor=white)](https://pepy.tech/project/pandoc-figure) [![Development Status](https://img.shields.io/pypi/status/pandoc-figure.svg?logo=pypi&logoColor=white)](https://pypi.org/project/pandoc-figure/) [![Python version](https://img.shields.io/pypi/pyversions/pandoc-figure.svg?logo=Python&logoColor=white)](https://pypi.org/project/pandoc-figure/) -[![Pandoc version](https://img.shields.io/badge/pandoc-3.0%20|%203.1%20|%203.2%20|%203.3%20|%203.4%20|%203.5-blue.svg?logo=markdown)](https://pandoc.org/) +[![Pandoc version](https://img.shields.io/badge/pandoc-3.0%20..%203.6-blue.svg?logo=markdown)](https://pandoc.org/) [![Latest release](https://img.shields.io/github/release-date/chdemko/pandoc-figure.svg?logo=github)](https://github.com/chdemko/pandoc-figure/releases) [![Last commit](https://img.shields.io/github/last-commit/chdemko/pandoc-figure/develop?logo=github)](https://github.com/chdemko/pandoc-figure/commit/develop/) [![Repo Size](https://img.shields.io/github/repo-size/chdemko/pandoc-figure.svg?logo=github)](http://pandoc-figure.readthedocs.io/en/latest/) diff --git a/pyproject.toml b/pyproject.toml index 3cd742b..93b1e5a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -72,7 +72,7 @@ dependencies = [ "black[jupyter]~=24.10", # Style checkers "doc8~=1.1", - "mypy~=1.12", + "mypy~=1.13", "flake8~=7.1", "flake8-pyproject~=1.2", "flake8-annotations-complexity~=0.0", @@ -100,7 +100,7 @@ dependencies = [ "pydoclint[flake8]~=0.5", "teyit~=0.4", "refurb~=2.0", - "ruff~=0.7" + "ruff~=0.8" ] [tool.hatch.envs.hatch-static-analysis.scripts] @@ -212,21 +212,23 @@ arg-type-hints-in-docstring = false style = "numpy" [tool.mypy] -disallow_any_generics = true -disallow_subclassing_any = true -# disallow_untyped_calls = true -# disallow_untyped_defs = true -# disallow_incomplete_defs = true -# check_untyped_defs = true -disallow_untyped_decorators = true ignore_missing_imports = true no_implicit_optional = true -no_implicit_reexport = true -warn_redundant_casts = true -warn_return_any = true # equivalent to --strict option warn_unused_configs = true +disallow_any_generics = true +disallow_subclassing_any = true +disallow_untyped_calls = true +disallow_untyped_defs = true +disallow_incomplete_defs = true +check_untyped_defs = true +disallow_untyped_decorators = true +warn_redundant_casts = true warn_unused_ignores = true +warn_return_any = true +no_implicit_reexport = true +strict_equality = true +extra_checks = true mypy_path = "src" [[tool.mypy.overrides]] diff --git a/uv.lock b/uv.lock index ea8ddda..3b1ec8b 100644 --- a/uv.lock +++ b/uv.lock @@ -24,7 +24,7 @@ wheels = [ [[package]] name = "pandoc-figure" -version = "0.1.0.5.post1.dev2" +version = "0.1.0.5.post1.dev3" source = { editable = "." } dependencies = [ { name = "panflute" },