diff --git a/CHANGELOG.md b/CHANGELOG.md index 9713977..8554b7e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ - Chg: Changed `pyproject.toml` according the new ruff configuration - New: Activate social cards in mkdocs by default - Chg: Updated hatch-pip-compile, ruff & mypy versions in `pyproject.toml` +- Fix: Some mkdocs deprecations, i.e. `materialx.emoji.twemoji` ## Version 0.3 diff --git a/test_template.sh b/test_template.sh index 61531ab..75c0a46 100755 --- a/test_template.sh +++ b/test_template.sh @@ -24,3 +24,4 @@ hatch run test:cov hatch run lint:all hatch run docs:build +hatch run pre-commit run --all-files diff --git a/{{cookiecutter.project_slug}}/mkdocs.yml b/{{cookiecutter.project_slug}}/mkdocs.yml index dc6bedc..00bec51 100644 --- a/{{cookiecutter.project_slug}}/mkdocs.yml +++ b/{{cookiecutter.project_slug}}/mkdocs.yml @@ -118,10 +118,8 @@ markdown_extensions: - pymdownx.critic: - pymdownx.details: - pymdownx.emoji: - # https://github.com/twitter/twemoji - # https://raw.githubusercontent.com/facelessuser/pymdown-extensions/master/pymdownx/twemoji_db.py - emoji_index: !!python/name:materialx.emoji.twemoji - emoji_generator: !!python/name:materialx.emoji.to_svg + emoji_index: !!python/name:material.extensions.emoji.twemoji + emoji_generator: !!python/name:material.extensions.emoji.to_svg - pymdownx.highlight: guess_lang: false linenums_style: pymdownx-inline diff --git a/{{cookiecutter.project_slug}}/pyproject.toml b/{{cookiecutter.project_slug}}/pyproject.toml index 565251e..69137b9 100644 --- a/{{cookiecutter.project_slug}}/pyproject.toml +++ b/{{cookiecutter.project_slug}}/pyproject.toml @@ -133,9 +133,9 @@ target-version = "{{ 'py' ~ cookiecutter.target_python_version.replace('.', '') line-length = 120 indent-width = 4 include = [ - "src/**/*.py", - "src/**/*.pyi", - "tests/**/*.py", + "src/**/*.py", + "src/**/*.pyi", + "tests/**/*.py", "tests/**/*.pyi" ] @@ -312,7 +312,7 @@ typing = [ style = [ "echo \"VERSION: `ruff --version`\"", "ruff check {args:.}", - "ruff format --diff {args:.}", + "ruff format --check {args:.}", ] fix = [ "ruff format {args:.}",