diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index a8724e7..b7d2ceb 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -15,11 +15,11 @@ 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 }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Install Hatch @@ -38,11 +38,11 @@ jobs: strategy: matrix: python-version: ['3.12'] - pandoc-version: [2.11.4, '2.12', '2.13', 2.14.2, '2.15', 2.16.2, 2.17.1.1, '2.18', 2.19.2, 3.0.1, 3.1.13, 3.2.1, '3.3', '3.4', '3.5'] + pandoc-version: [2.11.4, '2.12', '2.13', 2.14.2, '2.15', 2.16.2, 2.17.1.1, '2.18', 2.19.2, 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 }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Install Hatch @@ -60,11 +60,11 @@ jobs: strategy: matrix: python-version: ['3.12'] - pandoc-version: ['3.5'] + pandoc-version: ['3.6'] 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 @@ -85,11 +85,11 @@ jobs: strategy: matrix: python-version: ['3.12'] - pandoc-version: ['3.5'] + pandoc-version: ['3.6'] 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 a7c5eae..20dc0c6 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/README.md b/README.md index ce1d905..973dbbd 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,12 @@ Installation ============ -[![Python package](https://github.com/chdemko/pandoc-codeblock-include/workflows/Python%20package/badge.svg?branch=develop)](https://github.com/chdemko/pandoc-codeblock-include/actions/workflows/python-package.yml) +[![Python package](https://img.shields.io/github/actions/workflow/status/chdemko/pandoc-codeblock-include/python-package.yml?logo=github&branch=develop)](https://github.com/chdemko/pandoc-codeblock-include/actions/workflows/python-package.yml) [![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-codeblock-include/develop.svg?logo=Codecov&logoColor=white)](https://coveralls.io/github/chdemko/pandoc-codeblock-include?branch=develop) [![Scrutinizer](https://img.shields.io/scrutinizer/g/chdemko/pandoc-codeblock-include.svg?logo=scrutinizer)](https://scrutinizer-ci.com/g/chdemko/pandoc-codeblock-include/) -[![Code Climate](https://codeclimate.com/github/chdemko/pandoc-codeblock-include/badges/gpa.svg)](https://codeclimate.com/github/chdemko/pandoc-codeblock-include/) +[![Code Climate](https://img.shields.io/codeclimate/maintainability/chdemko/pandoc-codeblock-include?logo=codeclimate&barnch=develop)](https://codeclimate.com/github/chdemko/pandoc-codeblock-include/) [![CodeFactor](https://img.shields.io/codefactor/grade/github/chdemko/pandoc-codeblock-include/develop.svg?logo=codefactor)](https://www.codefactor.io/repository/github/chdemko/pandoc-codeblock-include) [![Codacy](https://img.shields.io/codacy/grade/26716ef242ba4089aff55eff7ca592a9.svg?logo=codacy&logoColor=white)](https://app.codacy.com/gh/chdemko/pandoc-codeblock-include/dashboard) [![PyPI version](https://img.shields.io/pypi/v/pandoc-codeblock-include.svg?logo=pypi&logoColor=white)](https://pypi.org/project/pandoc-codeblock-include/) @@ -15,7 +15,7 @@ Installation [![Downloads](https://img.shields.io/pypi/dm/pandoc-codeblock-include?logo=pypi&logoColor=white)](https://pepy.tech/project/pandoc-codeblock-include) [![Development Status](https://img.shields.io/pypi/status/pandoc-codeblock-include.svg?logo=pypi&logoColor=white)](https://pypi.org/project/pandoc-codeblock-include/) [![Python version](https://img.shields.io/pypi/pyversions/pandoc-codeblock-include.svg?logo=Python&logoColor=white)](https://pypi.org/project/pandoc-codeblock-include/) -[![Pandoc version](https://img.shields.io/badge/pandoc-2.11%20|%202.12%20|%202.13%20|%202.14%20|%202.15%20|%202.16%20|%202.17%20|%202.18%20|%202.19%20|%203.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-2.11%20..%203.6-blue.svg?logo=markdown)](https://pandoc.org/) [![Latest release](https://img.shields.io/github/release-date/chdemko/pandoc-codeblock-include.svg?logo=github)](https://github.com/chdemko/pandoc-codeblock-include/releases) [![Last commit](https://img.shields.io/github/last-commit/chdemko/pandoc-codeblock-include/develop?logo=github)](https://github.com/chdemko/pandoc-codeblock-include/commit/develop/) [![Repo Size](https://img.shields.io/github/repo-size/chdemko/pandoc-codeblock-include.svg?logo=github)](http://pandoc-codeblock-include.readthedocs.io/en/latest/) diff --git a/docs/conf.py b/docs/conf.py index f069a58..28eb6e8 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"2018-{year}, {author}" # noqa: A001 python_path = str(Path("..").resolve()) sys.path.insert(0, python_path) diff --git a/pyproject.toml b/pyproject.toml index 8c39064..abc397e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -34,6 +34,7 @@ classifiers = [ "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", # Natural language used "Natural Language :: English" ] @@ -71,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", @@ -99,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] @@ -211,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 7d02750..1ad2b4d 100644 --- a/uv.lock +++ b/uv.lock @@ -24,7 +24,7 @@ wheels = [ [[package]] name = "pandoc-codeblock-include" -version = "1.0.1.5.post1.dev5" +version = "1.0.1.6.post1.dev4" source = { editable = "." } dependencies = [ { name = "panflute" },