From ad8e9eca62457d3ea10ce0621473d7c82dad6c28 Mon Sep 17 00:00:00 2001 From: Christophe Demko Date: Tue, 22 Oct 2024 11:35:43 +0200 Subject: [PATCH 1/2] Moving to src --- .github/workflows/python-package.yml | 11 +-- .pre-commit-config.yaml | 16 ++-- README.md | 33 ++++++- docs/conf.py | 2 +- pyproject.toml | 53 ++++++----- .../pandoc_latex_admonition}/__init__.py | 0 .../pandoc_latex_admonition}/_main.py | 0 uv.lock | 91 +++++++++++++++++++ 8 files changed, 169 insertions(+), 37 deletions(-) rename {pandoc_latex_admonition => src/pandoc_latex_admonition}/__init__.py (100%) rename {pandoc_latex_admonition => src/pandoc_latex_admonition}/_main.py (100%) create mode 100644 uv.lock diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index a3bf304..b2c916c 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -14,8 +14,8 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ['3.10', '3.11', '3.12'] - pandoc-version: ['3.4'] + python-version: ['3.10', '3.11', '3.12', '3.13'] + pandoc-version: ['3.5'] steps: - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} @@ -37,8 +37,7 @@ jobs: strategy: matrix: python-version: ['3.12'] - poetry-version: [1.8.3] - pandoc-version: [3.0.1, 3.1.13, 3.2.1, '3.3', '3.4'] + pandoc-version: [3.0.1, 3.1.13, 3.2.1, '3.3', '3.4', '3.5'] steps: - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} @@ -60,7 +59,7 @@ jobs: strategy: matrix: python-version: ['3.12'] - pandoc-version: ['3.4'] + pandoc-version: ['3.5'] steps: - uses: actions/checkout@v4 - name: Set up Python @@ -85,7 +84,7 @@ jobs: strategy: matrix: python-version: ['3.12'] - pandoc-version: ['3.4'] + pandoc-version: ['3.5'] steps: - uses: actions/checkout@v4 - name: Set up Python diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9e8ac5c..d7364e7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.6.0 + rev: v5.0.0 hooks: - id: check-toml - id: check-yaml @@ -14,7 +14,7 @@ repos: args: [--autofix] - repo: https://github.com/asottile/pyupgrade - rev: v3.17.0 + rev: v3.18.0 hooks: - id: pyupgrade args: [--py310-plus] @@ -26,9 +26,9 @@ repos: entry: hatch fmt --check language: system pass_filenames: false - - id: dynamic-lint - name: dynamic-lint - entry: hatch run dynamic-lint:check + - id: lint + name: lint + entry: hatch run lint:check language: system pass_filenames: false - id: test @@ -36,4 +36,8 @@ repos: entry: hatch test language: system pass_filenames: false - + - id: lock + name: lock + entry: uv lock --upgrade + language: system + pass_filenames: false diff --git a/README.md b/README.md index aca3851..9781a16 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ Installation [![Downloads](https://img.shields.io/pypi/dm/pandoc-latex-admonition?logo=pypi&logoColor=white)](https://pepy.tech/project/pandoc-latex-admonition) [![Development Status](https://img.shields.io/pypi/status/pandoc-latex-admonition.svg?llogo=pypi&logoColor=white)](https://pypi.org/project/pandoc-latex-admonition/) [![Python version](https://img.shields.io/pypi/pyversions/pandoc-latex-admonition.svg?logo=Python&logoColor=white)](https://pypi.org/project/pandoc-latex-admonition/) -[![Pandoc version](https://img.shields.io/badge/pandoc-3.0%20|%203.1%20|%203.2%20|%203.3%20|%203.4-blue.svg?logo=markdown)](https://pandoc.org/) +[![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/) [![Latest release](https://img.shields.io/github/release-date/chdemko/pandoc-latex-admonition.svg?logo=github)](https://github.com/chdemko/pandoc-latex-admonition/releases) [![Last commit](https://img.shields.io/github/last-commit/chdemko/pandoc-latex-admonition/develop?logo=github)](https://github.com/chdemko/pandoc-latex-admonition/commit/develop/) [![Repo Size](https://img.shields.io/github/repo-size/chdemko/pandoc-latex-admonition.svg?logo=github)](http://pandoc-latex-admonition.readthedocs.io/en/latest/) @@ -82,3 +82,34 @@ welcome to [file an issue] on github so that we can help. [file an issue]: https://github.com/chdemko/pandoc-latex-admonition/issues +Contribute +========== + +Instructions +------------ + +Install `hatch`, then run + +~~~shell-session +$ hatch run pip install pre-commit +$ hatch run pre-commit install +~~~ + +to install `pre-commit` before working on your changes. + +Tests +----- + +When your changes are ready, run + +~~~shell-session +$ hatch test +$ hatch fmt --check +$ hatch run lint:check +$ hatch run docs:build +$ hatch build -t wheel +~~~ + +for running the tests, checking the style, building the documentation +and building the wheel. + diff --git a/docs/conf.py b/docs/conf.py index c55874c..0b1e795 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -37,7 +37,7 @@ # -- General configuration --------------------------------------------------- # If your documentation needs a minimal Sphinx version, state it here. -needs_sphinx = "6.0" +needs_sphinx = "8.1" # Add any Sphinx extension module names here, as strings. They can be # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom diff --git a/pyproject.toml b/pyproject.toml index 4921f3c..7cbdedb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,7 +7,7 @@ dynamic = ["version"] name = "pandoc-latex-admonition" description = "A pandoc filter for adding admonition in LaTeX" readme = "README.md" -requires-python = ">=3.10,<3.13" +requires-python = ">=3.10,<3.14" license = {text = "BSD-3-Clause"} license-files = {paths = ["LICENSE"]} authors = [{name = "Christophe Demko", email = "chdemko@gmail.com"}] @@ -34,6 +34,7 @@ classifiers = [ "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.14", # Natural language used "Natural Language :: English" ] @@ -58,20 +59,20 @@ version_scheme = "no-guess-dev" local_scheme = "node-and-date" [tool.hatch.build.targets.wheel] -packages = ["pandoc_latex_admonition"] +packages = ["src/pandoc_latex_admonition"] [[tool.hatch.envs.hatch-test.matrix]] -python = ["3.10", "3.11", "3.12"] +python = ["3.10", "3.11", "3.12", "3.13"] [tool.hatch.envs.hatch-static-analysis] dependencies = [ # Types "types-PyYAML~=6.0", # Formatter - "black[jupyter]~=24.8", + "black[jupyter]~=24.10", # Style checkers "doc8~=1.1", - "mypy~=1.11", + "mypy~=1.12", "flake8~=7.1", "flake8-pyproject~=1.2", "flake8-annotations-complexity~=0.0", @@ -87,65 +88,70 @@ dependencies = [ "flake8-functions~=0.0", "flake8-import-order~=0.18", "flake8-mypy~=17.8", - "flake8-pyi~=24.6", + "flake8-pyi~=24.9", "flake8-pydocstyle~=0.2", "flake8-return~=1.2", "flake8-simplify~=0.21", "flake8-spellcheck~=0.28", "flake8-use-fstring~=1.4", "flake8-variables-names~=0.0", - "pep8-naming~=0.13", + "pep8-naming~=0.14", "darglint~=1.8.1", "pydoclint[flake8]~=0.5", "teyit~=0.4", "refurb~=2.0", - "ruff~=0.6" + "ruff~=0.7" ] [tool.hatch.envs.hatch-static-analysis.scripts] format-check = [ - "black --check --diff {args:pandoc_latex_admonition docs}", + "black --check --diff {args:src docs}", "doc8 -q {args:docs README.md} -e .rst -e .md" ] format-fix = [ - "black {args:pandoc_latex_admonition docs}" + "black {args:src docs}" ] lint-check = [ - "refurb {args:pandoc_latex_admonition docs}", - "ruff check {args:pandoc_latex_admonition docs}", + "refurb {args:src docs}", + "ruff check {args:src docs}", "teyit --show-stats --fail-on-change {args:tests}", - "flake8 {args:pandoc_latex_admonition docs}" + "flake8 {args:src docs}" ] lint-fix = [ - "ruff check --fix {args:pandoc_latex_admonition docs}" + "ruff check --fix {args:src docs}" ] -[tool.hatch.envs.dynamic-lint] +[tool.hatch.envs.lint] dependencies = [ "slotscheck~=0.19", - "pylint~=3.2" + "pylint~=3.3" ] -[tool.hatch.envs.dynamic-lint.scripts] +[tool.hatch.envs.lint.scripts] check = [ - "slotscheck {args:pandoc_latex_admonition}", - "pylint {args:pandoc_latex_admonition}" + "slotscheck {args:src}", + "pylint {args:src}" ] [tool.hatch.envs.docs] dependencies = [ - "myst-parser~=2.0", - "Sphinx~=7.2", - "sphinx-rtd-theme~=2.0", + "myst-parser~=4.0", + "Sphinx~=8.1", + "sphinx-rtd-theme~=3.0", "sphinx-copybutton~=0.5" ] [tool.hatch.envs.docs.scripts] build = "sphinx-build docs {args:build/sphinx/html}" +[tool.pytest.ini_options] +consider_namespace_packages = true +pythonpath = ["src"] + [tool.ruff] # Allow lines to be as long as 88. line-length = 88 +target-version = "py310" [tool.flake8] # flake8-docstrings @@ -221,6 +227,7 @@ warn_return_any = true # equivalent to --strict option warn_unused_configs = true warn_unused_ignores = true +mypy_path = "src" [[tool.mypy.overrides]] ignore_missing_imports = true @@ -230,4 +237,4 @@ module = "panflute.*" convention = "numpy" [tool.coverage.run] -source = ["pandoc_latex_admonition"] +source = ["src"] diff --git a/pandoc_latex_admonition/__init__.py b/src/pandoc_latex_admonition/__init__.py similarity index 100% rename from pandoc_latex_admonition/__init__.py rename to src/pandoc_latex_admonition/__init__.py diff --git a/pandoc_latex_admonition/_main.py b/src/pandoc_latex_admonition/_main.py similarity index 100% rename from pandoc_latex_admonition/_main.py rename to src/pandoc_latex_admonition/_main.py diff --git a/uv.lock b/uv.lock new file mode 100644 index 0000000..81206fd --- /dev/null +++ b/uv.lock @@ -0,0 +1,91 @@ +version = 1 +requires-python = ">=3.10, <3.14" + +[[package]] +name = "click" +version = "8.1.7" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "colorama", marker = "platform_system == 'Windows'" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/96/d3/f04c7bfcf5c1862a2a5b845c6b2b360488cf47af55dfa79c98f6a6bf98b5/click-8.1.7.tar.gz", hash = "sha256:ca9853ad459e787e2192211578cc907e7594e294c7ccc834310722b41b9ca6de", size = 336121 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/00/2e/d53fa4befbf2cfa713304affc7ca780ce4fc1fd8710527771b58311a3229/click-8.1.7-py3-none-any.whl", hash = "sha256:ae74fb96c20a0277a1d615f1e4d73c8414f5a98db8b799a7931d1582f3390c28", size = 97941 }, +] + +[[package]] +name = "colorama" +version = "0.4.6" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/d8/53/6f443c9a4a8358a93a6792e2acffb9d9d5cb0a5cfd8802644b7b1c9a02e4/colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44", size = 27697 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/d1/d6/3965ed04c63042e047cb6a3e6ed1a63a35087b6a609aa3a15ed8ac56c221/colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6", size = 25335 }, +] + +[[package]] +name = "pandoc-latex-admonition" +version = "1.3.4.2.post1.dev1+g57ad45e.d20241022" +source = { editable = "." } +dependencies = [ + { name = "panflute" }, +] + +[package.metadata] +requires-dist = [{ name = "panflute", specifier = "~=2.3" }] + +[[package]] +name = "panflute" +version = "2.3.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "click" }, + { name = "pyyaml" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/b7/91/b659923bea127e51bc1b279c3afb3724cae116893ddba7ae498a97496693/panflute-2.3.1.tar.gz", hash = "sha256:5f1bd02a34ef3982ee025ec5b58fb3a6eedfc31d994b8ae39d8dc9915a2d8f1f", size = 44829 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/bf/dd/49f5d0aa985c14218da8759ec4a93390b683c92fd9081d5b96383d48db6e/panflute-2.3.1-py3-none-any.whl", hash = "sha256:e44afd875b7b17ffebbbe58282849df06d9f1b20a45a2f933cd51bdcf4e89130", size = 36714 }, +] + +[[package]] +name = "pyyaml" +version = "6.0.2" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/54/ed/79a089b6be93607fa5cdaedf301d7dfb23af5f25c398d5ead2525b063e17/pyyaml-6.0.2.tar.gz", hash = "sha256:d584d9ec91ad65861cc08d42e834324ef890a082e591037abe114850ff7bbc3e", size = 130631 } +wheels = [ + { url = "https://files.pythonhosted.org/packages/9b/95/a3fac87cb7158e231b5a6012e438c647e1a87f09f8e0d123acec8ab8bf71/PyYAML-6.0.2-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:0a9a2848a5b7feac301353437eb7d5957887edbf81d56e903999a75a3d743086", size = 184199 }, + { url = "https://files.pythonhosted.org/packages/c7/7a/68bd47624dab8fd4afbfd3c48e3b79efe09098ae941de5b58abcbadff5cb/PyYAML-6.0.2-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:29717114e51c84ddfba879543fb232a6ed60086602313ca38cce623c1d62cfbf", size = 171758 }, + { url = "https://files.pythonhosted.org/packages/49/ee/14c54df452143b9ee9f0f29074d7ca5516a36edb0b4cc40c3f280131656f/PyYAML-6.0.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8824b5a04a04a047e72eea5cec3bc266db09e35de6bdfe34c9436ac5ee27d237", size = 718463 }, + { url = "https://files.pythonhosted.org/packages/4d/61/de363a97476e766574650d742205be468921a7b532aa2499fcd886b62530/PyYAML-6.0.2-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:7c36280e6fb8385e520936c3cb3b8042851904eba0e58d277dca80a5cfed590b", size = 719280 }, + { url = "https://files.pythonhosted.org/packages/6b/4e/1523cb902fd98355e2e9ea5e5eb237cbc5f3ad5f3075fa65087aa0ecb669/PyYAML-6.0.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ec031d5d2feb36d1d1a24380e4db6d43695f3748343d99434e6f5f9156aaa2ed", size = 751239 }, + { url = "https://files.pythonhosted.org/packages/b7/33/5504b3a9a4464893c32f118a9cc045190a91637b119a9c881da1cf6b7a72/PyYAML-6.0.2-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:936d68689298c36b53b29f23c6dbb74de12b4ac12ca6cfe0e047bedceea56180", size = 695802 }, + { url = "https://files.pythonhosted.org/packages/5c/20/8347dcabd41ef3a3cdc4f7b7a2aff3d06598c8779faa189cdbf878b626a4/PyYAML-6.0.2-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:23502f431948090f597378482b4812b0caae32c22213aecf3b55325e049a6c68", size = 720527 }, + { url = "https://files.pythonhosted.org/packages/be/aa/5afe99233fb360d0ff37377145a949ae258aaab831bde4792b32650a4378/PyYAML-6.0.2-cp310-cp310-win32.whl", hash = "sha256:2e99c6826ffa974fe6e27cdb5ed0021786b03fc98e5ee3c5bfe1fd5015f42b99", size = 144052 }, + { url = "https://files.pythonhosted.org/packages/b5/84/0fa4b06f6d6c958d207620fc60005e241ecedceee58931bb20138e1e5776/PyYAML-6.0.2-cp310-cp310-win_amd64.whl", hash = "sha256:a4d3091415f010369ae4ed1fc6b79def9416358877534caf6a0fdd2146c87a3e", size = 161774 }, + { url = "https://files.pythonhosted.org/packages/f8/aa/7af4e81f7acba21a4c6be026da38fd2b872ca46226673c89a758ebdc4fd2/PyYAML-6.0.2-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:cc1c1159b3d456576af7a3e4d1ba7e6924cb39de8f67111c735f6fc832082774", size = 184612 }, + { url = "https://files.pythonhosted.org/packages/8b/62/b9faa998fd185f65c1371643678e4d58254add437edb764a08c5a98fb986/PyYAML-6.0.2-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:1e2120ef853f59c7419231f3bf4e7021f1b936f6ebd222406c3b60212205d2ee", size = 172040 }, + { url = "https://files.pythonhosted.org/packages/ad/0c/c804f5f922a9a6563bab712d8dcc70251e8af811fce4524d57c2c0fd49a4/PyYAML-6.0.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5d225db5a45f21e78dd9358e58a98702a0302f2659a3c6cd320564b75b86f47c", size = 736829 }, + { url = "https://files.pythonhosted.org/packages/51/16/6af8d6a6b210c8e54f1406a6b9481febf9c64a3109c541567e35a49aa2e7/PyYAML-6.0.2-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:5ac9328ec4831237bec75defaf839f7d4564be1e6b25ac710bd1a96321cc8317", size = 764167 }, + { url = "https://files.pythonhosted.org/packages/75/e4/2c27590dfc9992f73aabbeb9241ae20220bd9452df27483b6e56d3975cc5/PyYAML-6.0.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:3ad2a3decf9aaba3d29c8f537ac4b243e36bef957511b4766cb0057d32b0be85", size = 762952 }, + { url = "https://files.pythonhosted.org/packages/9b/97/ecc1abf4a823f5ac61941a9c00fe501b02ac3ab0e373c3857f7d4b83e2b6/PyYAML-6.0.2-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:ff3824dc5261f50c9b0dfb3be22b4567a6f938ccce4587b38952d85fd9e9afe4", size = 735301 }, + { url = "https://files.pythonhosted.org/packages/45/73/0f49dacd6e82c9430e46f4a027baa4ca205e8b0a9dce1397f44edc23559d/PyYAML-6.0.2-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:797b4f722ffa07cc8d62053e4cff1486fa6dc094105d13fea7b1de7d8bf71c9e", size = 756638 }, + { url = "https://files.pythonhosted.org/packages/22/5f/956f0f9fc65223a58fbc14459bf34b4cc48dec52e00535c79b8db361aabd/PyYAML-6.0.2-cp311-cp311-win32.whl", hash = "sha256:11d8f3dd2b9c1207dcaf2ee0bbbfd5991f571186ec9cc78427ba5bd32afae4b5", size = 143850 }, + { url = "https://files.pythonhosted.org/packages/ed/23/8da0bbe2ab9dcdd11f4f4557ccaf95c10b9811b13ecced089d43ce59c3c8/PyYAML-6.0.2-cp311-cp311-win_amd64.whl", hash = "sha256:e10ce637b18caea04431ce14fabcf5c64a1c61ec9c56b071a4b7ca131ca52d44", size = 161980 }, + { url = "https://files.pythonhosted.org/packages/86/0c/c581167fc46d6d6d7ddcfb8c843a4de25bdd27e4466938109ca68492292c/PyYAML-6.0.2-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:c70c95198c015b85feafc136515252a261a84561b7b1d51e3384e0655ddf25ab", size = 183873 }, + { url = "https://files.pythonhosted.org/packages/a8/0c/38374f5bb272c051e2a69281d71cba6fdb983413e6758b84482905e29a5d/PyYAML-6.0.2-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:ce826d6ef20b1bc864f0a68340c8b3287705cae2f8b4b1d932177dcc76721725", size = 173302 }, + { url = "https://files.pythonhosted.org/packages/c3/93/9916574aa8c00aa06bbac729972eb1071d002b8e158bd0e83a3b9a20a1f7/PyYAML-6.0.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1f71ea527786de97d1a0cc0eacd1defc0985dcf6b3f17bb77dcfc8c34bec4dc5", size = 739154 }, + { url = "https://files.pythonhosted.org/packages/95/0f/b8938f1cbd09739c6da569d172531567dbcc9789e0029aa070856f123984/PyYAML-6.0.2-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:9b22676e8097e9e22e36d6b7bda33190d0d400f345f23d4065d48f4ca7ae0425", size = 766223 }, + { url = "https://files.pythonhosted.org/packages/b9/2b/614b4752f2e127db5cc206abc23a8c19678e92b23c3db30fc86ab731d3bd/PyYAML-6.0.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:80bab7bfc629882493af4aa31a4cfa43a4c57c83813253626916b8c7ada83476", size = 767542 }, + { url = "https://files.pythonhosted.org/packages/d4/00/dd137d5bcc7efea1836d6264f049359861cf548469d18da90cd8216cf05f/PyYAML-6.0.2-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:0833f8694549e586547b576dcfaba4a6b55b9e96098b36cdc7ebefe667dfed48", size = 731164 }, + { url = "https://files.pythonhosted.org/packages/c9/1f/4f998c900485e5c0ef43838363ba4a9723ac0ad73a9dc42068b12aaba4e4/PyYAML-6.0.2-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:8b9c7197f7cb2738065c481a0461e50ad02f18c78cd75775628afb4d7137fb3b", size = 756611 }, + { url = "https://files.pythonhosted.org/packages/df/d1/f5a275fdb252768b7a11ec63585bc38d0e87c9e05668a139fea92b80634c/PyYAML-6.0.2-cp312-cp312-win32.whl", hash = "sha256:ef6107725bd54b262d6dedcc2af448a266975032bc85ef0172c5f059da6325b4", size = 140591 }, + { url = "https://files.pythonhosted.org/packages/0c/e8/4f648c598b17c3d06e8753d7d13d57542b30d56e6c2dedf9c331ae56312e/PyYAML-6.0.2-cp312-cp312-win_amd64.whl", hash = "sha256:7e7401d0de89a9a855c839bc697c079a4af81cf878373abd7dc625847d25cbd8", size = 156338 }, + { url = "https://files.pythonhosted.org/packages/ef/e3/3af305b830494fa85d95f6d95ef7fa73f2ee1cc8ef5b495c7c3269fb835f/PyYAML-6.0.2-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:efdca5630322a10774e8e98e1af481aad470dd62c3170801852d752aa7a783ba", size = 181309 }, + { url = "https://files.pythonhosted.org/packages/45/9f/3b1c20a0b7a3200524eb0076cc027a970d320bd3a6592873c85c92a08731/PyYAML-6.0.2-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:50187695423ffe49e2deacb8cd10510bc361faac997de9efef88badc3bb9e2d1", size = 171679 }, + { url = "https://files.pythonhosted.org/packages/7c/9a/337322f27005c33bcb656c655fa78325b730324c78620e8328ae28b64d0c/PyYAML-6.0.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0ffe8360bab4910ef1b9e87fb812d8bc0a308b0d0eef8c8f44e0254ab3b07133", size = 733428 }, + { url = "https://files.pythonhosted.org/packages/a3/69/864fbe19e6c18ea3cc196cbe5d392175b4cf3d5d0ac1403ec3f2d237ebb5/PyYAML-6.0.2-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:17e311b6c678207928d649faa7cb0d7b4c26a0ba73d41e99c4fff6b6c3276484", size = 763361 }, + { url = "https://files.pythonhosted.org/packages/04/24/b7721e4845c2f162d26f50521b825fb061bc0a5afcf9a386840f23ea19fa/PyYAML-6.0.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:70b189594dbe54f75ab3a1acec5f1e3faa7e8cf2f1e08d9b561cb41b845f69d5", size = 759523 }, + { url = "https://files.pythonhosted.org/packages/2b/b2/e3234f59ba06559c6ff63c4e10baea10e5e7df868092bf9ab40e5b9c56b6/PyYAML-6.0.2-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:41e4e3953a79407c794916fa277a82531dd93aad34e29c2a514c2c0c5fe971cc", size = 726660 }, + { url = "https://files.pythonhosted.org/packages/fe/0f/25911a9f080464c59fab9027482f822b86bf0608957a5fcc6eaac85aa515/PyYAML-6.0.2-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:68ccc6023a3400877818152ad9a1033e3db8625d899c72eacb5a668902e4d652", size = 751597 }, + { url = "https://files.pythonhosted.org/packages/14/0d/e2c3b43bbce3cf6bd97c840b46088a3031085179e596d4929729d8d68270/PyYAML-6.0.2-cp313-cp313-win32.whl", hash = "sha256:bc2fa7c6b47d6bc618dd7fb02ef6fdedb1090ec036abab80d4681424b84c1183", size = 140527 }, + { url = "https://files.pythonhosted.org/packages/fa/de/02b54f42487e3d3c6efb3f89428677074ca7bf43aae402517bc7cca949f3/PyYAML-6.0.2-cp313-cp313-win_amd64.whl", hash = "sha256:8388ee1976c416731879ac16da0aff3f63b286ffdd57cdeb95f3f2e085687563", size = 156446 }, +] From d836143f2a8b4865f81e173e8357a1ffd84dd9a0 Mon Sep 17 00:00:00 2001 From: Christophe Demko Date: Tue, 22 Oct 2024 11:37:06 +0200 Subject: [PATCH 2/2] Moving to src --- .github/workflows/python-package.yml | 2 +- uv.lock | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index b2c916c..e7dfd92 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -77,7 +77,7 @@ jobs: hatch fmt --check - name: Dynamic check run: | - hatch run dynamic-lint:check + hatch run lint:check cov: runs-on: ubuntu-latest diff --git a/uv.lock b/uv.lock index 81206fd..b8216df 100644 --- a/uv.lock +++ b/uv.lock @@ -24,7 +24,7 @@ wheels = [ [[package]] name = "pandoc-latex-admonition" -version = "1.3.4.2.post1.dev1+g57ad45e.d20241022" +version = "1.3.4.2.post1.dev2+gad8e9ec.d20241022" source = { editable = "." } dependencies = [ { name = "panflute" },