build(deps): bump mkdocs-get-deps from 0.2.0 to 0.2.2#285
Open
dependabot[bot] wants to merge 1 commit intomasterfrom
Open
build(deps): bump mkdocs-get-deps from 0.2.0 to 0.2.2#285dependabot[bot] wants to merge 1 commit intomasterfrom
dependabot[bot] wants to merge 1 commit intomasterfrom
Conversation
|
Collaborator
|
Not sure what the deal is here. The linked repo's latest tag is 0.2.0 and hasnt been updated in 2 years. Latest commits are also 2 years old. |
Collaborator
|
cc @plowsof |
Collaborator
|
https://pypi.org/project/mkdocs-get-deps/0.2.2/ released march 10th maintainer is https://github.com/oprypin who 'created an mkdocs-get-deps' repository on 9th march https://github.com/oprypin/mkdocs-get-deps has the tags Oleh seems to be the account name pushing commits to https://github.com/mkdocs/get-deps |
Collaborator
diffdiff --git a/.github/workflows/autofix.yml b/.github/workflows/autofix.yml
index 636f30a..d147279 100644
--- a/.github/workflows/autofix.yml
+++ b/.github/workflows/autofix.yml
@@ -7,9 +7,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Download source
- uses: actions/checkout@v4
+ uses: actions/checkout@v6
- name: Install Python
- uses: actions/setup-python@v5
+ uses: actions/setup-python@v6
with:
python-version: '3.12'
- name: Install Hatch
@@ -26,4 +26,4 @@ jobs:
git diff --color --exit-code
- name: Apply automatic fixes using pre-commit-ci-lite
if: failure() && github.event_name == 'pull_request'
- uses: pre-commit-ci/lite-action@v1.0.1
+ uses: pre-commit-ci/lite-action@5d6cc0eb514c891a40562a58a8e71576c5c7fb43 # v1.1.0
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 6887eaa..0a2df3c 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -13,27 +13,27 @@ jobs:
fail-fast: false
matrix:
include:
- - python: '^3.12'
+ - python: '^3.13'
os: ubuntu-latest
- - python: '3.12'
+ - python: '3.13'
os: macos-latest
- - python: '3.11'
+ - python: '3.12'
os: windows-latest
- - python: '3.10'
+ - python: '3.11'
os: ubuntu-latest
- - python: '3.9'
+ - python: '3.10'
os: macos-latest
- - python: '3.8'
+ - python: '3.9'
os: windows-latest
- - python: '3.8'
+ - python: '3.9'
os: ubuntu-latest
versions: minimal
runs-on: ${{matrix.os}}
steps:
- name: Download source
- uses: actions/checkout@v4
+ uses: actions/checkout@v6
- name: Install Python
- uses: actions/setup-python@v5
+ uses: actions/setup-python@v6
with:
python-version: ${{matrix.python}}
- name: Pin to lowest versions
@@ -53,9 +53,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Download source
- uses: actions/checkout@v4
+ uses: actions/checkout@v6
- name: Install Python
- uses: actions/setup-python@v5
+ uses: actions/setup-python@v6
with:
python-version: '3.12'
- name: Install Hatch
diff --git a/.github/workflows/deploy-release.yml b/.github/workflows/deploy-release.yml
index 44fed5b..88d12e5 100644
--- a/.github/workflows/deploy-release.yml
+++ b/.github/workflows/deploy-release.yml
@@ -9,9 +9,9 @@ jobs:
id-token: write
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v6
- name: Setup Python
- uses: actions/setup-python@v5
+ uses: actions/setup-python@v6
with:
python-version: '3.12'
- name: Install dependencies
diff --git a/.tools/copier-answers.yml b/.tools/copier-answers.yml
index 5d0c428..d5997e1 100644
--- a/.tools/copier-answers.yml
+++ b/.tools/copier-answers.yml
@@ -1,8 +1,7 @@
-_commit: 0903da199
+_commit: 40ef3fe5a
_src_path: gh:oprypin/py-project-template
copyright_date: '2023'
mkdocs: false
-mkdocs_install_self: false
project_description: An extra command for MkDocs that infers required PyPI packages from `plugins` in mkdocs.yml
project_name: mkdocs-get-deps
pytest: true
diff --git a/mkdocs_get_deps/__init__.py b/mkdocs_get_deps/__init__.py
index b279e97..79073eb 100644
--- a/mkdocs_get_deps/__init__.py
+++ b/mkdocs_get_deps/__init__.py
@@ -1,6 +1,6 @@
from __future__ import annotations
-__version__ = "0.2.0"
+__version__ = "0.2.2"
import dataclasses
import datetime
@@ -10,7 +10,8 @@ import logging
import os
import sys
import urllib.parse
-from typing import IO, Any, BinaryIO, Collection, Mapping, Sequence
+from collections.abc import Collection, Mapping, Sequence
+from typing import IO, Any, BinaryIO
import yaml
@@ -23,7 +24,26 @@ DEFAULT_PROJECTS_FILE = "https://raw.githubusercontent.com/mkdocs/catalog/main/p
BUILTIN_THEMES = {"mkdocs", "readthedocs"}
BUILTIN_PLUGINS = {"search"}
-_BUILTIN_EXTENSIONS = "abbr admonition attr_list codehilite def_list extra fenced_code footnotes md_in_html meta nl2br sane_lists smarty tables toc wikilinks legacy_attrs legacy_em".split()
+_BUILTIN_EXTENSIONS = [
+ "abbr",
+ "admonition",
+ "attr_list",
+ "codehilite",
+ "def_list",
+ "extra",
+ "fenced_code",
+ "footnotes",
+ "md_in_html",
+ "meta",
+ "nl2br",
+ "sane_lists",
+ "smarty",
+ "tables",
+ "toc",
+ "wikilinks",
+ "legacy_attrs",
+ "legacy_em",
+]
BUILTIN_EXTENSIONS = {
*_BUILTIN_EXTENSIONS,
*(f"markdown.extensions.{e}" for e in _BUILTIN_EXTENSIONS),
@@ -63,7 +83,7 @@ def _strings(obj) -> Sequence[str]:
return tuple(obj)
-@functools.lru_cache(maxsize=None)
+@functools.cache
def _entry_points(group: str) -> Mapping[str, Any]:
if sys.version_info >= (3, 10):
from importlib.metadata import entry_points
@@ -159,7 +179,7 @@ def get_deps(
if projects_file is None:
projects_file = get_projects_file()
with projects_file:
- projects = yaml.load(projects_file, Loader=yaml_util.SafeLoader)["projects"]
+ projects = yaml.load(projects_file, Loader=yaml_util.SafeLoader)["projects"] # noqa: S506
for project in projects:
for kind, wanted in wanted_plugins:
diff --git a/mkdocs_get_deps/yaml_util.py b/mkdocs_get_deps/yaml_util.py
index 93ad3fc..3df31b5 100644
--- a/mkdocs_get_deps/yaml_util.py
+++ b/mkdocs_get_deps/yaml_util.py
@@ -33,7 +33,7 @@ YamlLoader.add_multi_constructor(
def yaml_load(source: IO | str) -> dict[str, Any]:
"""Return dict of source YAML file using loader, recursively deep merging inherited parent."""
- result = yaml.load(source, Loader=YamlLoader)
+ result = yaml.load(source, Loader=YamlLoader) # noqa: S506
if result is None:
return {}
if (
diff --git a/pyproject.toml b/pyproject.toml
index 51ca7d1..b6e13d1 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -19,16 +19,18 @@ classifiers = [
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
- "Programming Language :: Python :: 3.8",
+ # Begin Python versions
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
+ "Programming Language :: Python :: 3.13",
+ # End Python versions
"Topic :: Software Development :: Documentation",
"Typing :: Typed",
]
dynamic = ["version"]
-requires-python = ">=3.8"
+requires-python = ">=3.9"
dependencies = [
"importlib-metadata >=4.3; python_version < '3.10'",
"mergedeep >=1.3.4",
@@ -96,29 +98,36 @@ line-length = 100
[tool.ruff.lint]
preview = true
select = [
- "F", "E", "W", "I", "UP", "YTT", "C4", "DTZ", "T10", "FA", "ISC", "PIE", "T20", "RSE", "TCH",
+ "F", "E", "W", "I", "UP", "YTT", "ASYNC", "FBT", "C4", "DTZ", "T10", "FA", "ISC", "PIE", "T20", "RSE",
"N803", "N804", "N805", "N806", "N807", "N815", "N816", "N999",
- "B002", "B003", "B005", "B007", "B008", "B009", "B010", "B011", "B012", "B013", "B014", "B015", "B016", "B017", "B018", "B020", "B021", "B022", "B023", "B025", "B026", "B029", "B030", "B031", "B032", "B033", "B034", "B035", "B905",
+ "S201", "S202", "S303", "S304", "S305", "S306", "S506", "S602", "S604", "S605", "S612",
+ "B002", "B003", "B004", "B005", "B007", "B008", "B009", "B010", "B011", "B012", "B013", "B014", "B015", "B016", "B017", "B018", "B019", "B020", "B021", "B022", "B023", "B025", "B026", "B029", "B030", "B031", "B032", "B033", "B034", "B035", "B039", "B905", "B909", "B911",
"COM818",
- "G001", "G010", "G202",
+ "LOG001", "LOG007", "LOG009", "LOG015",
+ "G001", "G002", "G003", "G010", "G101", "G201", "G202",
+ "PYI001", "PYI002", "PYI003", "PYI004", "PYI005", "PYI006", "PYI007", "PYI008", "PYI009", "PYI010", "PYI011", "PYI012", "PYI013", "PYI014", "PYI015", "PYI016", "PYI017", "PYI018", "PYI019", "PYI020", "PYI021", "PYI024", "PYI025", "PYI026", "PYI029", "PYI030", "PYI032", "PYI033", "PYI034", "PYI035", "PYI036", "PYI041", "PYI042", "PYI043", "PYI044", "PYI045", "PYI046", "PYI047", "PYI048", "PYI049", "PYI050", "PYI051", "PYI052", "PYI053", "PYI054", "PYI055", "PYI056", "PYI057", "PYI058", "PYI059", "PYI061", "PYI062", "PYI063", "PYI064", "PYI066",
"Q004",
- "RET502", "RET504",
- "SIM101", "SIM103", "SIM105", "SIM107", "SIM118", "SIM201", "SIM202", "SIM208", "SIM210", "SIM211", "SIM212", "SIM220", "SIM221", "SIM222", "SIM223", "SIM300", "SIM401", "SIM910", "SIM911",
+ "RET502", "RET503", "RET504",
+ "SIM101", "SIM103", "SIM105", "SIM107", "SIM109", "SIM110", "SIM113", "SIM114", "SIM118", "SIM201", "SIM202", "SIM208", "SIM210", "SIM211", "SIM212", "SIM220", "SIM221", "SIM222", "SIM223", "SIM300", "SIM401", "SIM905", "SIM910", "SIM911",
+ "TC001", "TC002", "TC003", "TC004", "TC005", "TC006", "TC007", "TC008", "TC010",
+ "PTH201",
+ "TD004", "TD005", "TD006", "TD007",
"PGH003", "PGH004", "PGH005",
- "PLC0105", "PLC0131", "PLC0132", "PLC0205", "PLC0208", "PLC0414", "PLC2401", "PLC2403", "PLC2701", "PLC2801", "PLC3002",
- "PLE0100", "PLE0101", "PLE0116", "PLE0117", "PLE0118", "PLE0241", "PLE0302", "PLE0307", "PLE0604", "PLE0605", "PLE0704", "PLE1132", "PLE1142", "PLE1205", "PLE1206", "PLE1300", "PLE1307", "PLE1310", "PLE1507", "PLE1700", "PLE2502", "PLE2510", "PLE2512", "PLE2513", "PLE2514", "PLE2515",
- "PLR0124", "PLR0133", "PLR0206", "PLR0402", "PLR1701", "PLR1722", "PLR1733", "PLR1736",
- "PLW0108", "PLW0120", "PLW0127", "PLW0129", "PLW0131", "PLW0245", "PLW0406", "PLW0602", "PLW0603", "PLW0604", "PLW0711", "PLW1501", "PLW1508", "PLW1514", "PLW2101", "PLW3301",
- "TRY302", "TRY401",
+ "PLC0105", "PLC0131", "PLC0132", "PLC0205", "PLC0206", "PLC0208", "PLC0414", "PLC2401", "PLC2403", "PLC2701", "PLC2801", "PLC3002",
+ "PLR0124", "PLR0133", "PLR0202", "PLR0203", "PLR0206", "PLR0402", "PLR1716", "PLR1722", "PLR1733", "PLR1736", "PLR2044", "PLR6301",
+ "TRY201", "TRY203", "TRY401",
"FLY002",
"PERF101", "PERF102", "PERF402", "PERF403",
- "FURB105", "FURB118", "FURB131", "FURB132", "FURB148", "FURB163", "FURB167", "FURB168", "FURB169",
- "LOG001", "LOG009",
- "RUF001", "RUF005", "RUF007", "RUF008", "RUF009", "RUF010", "RUF013", "RUF015", "RUF016", "RUF017", "RUF018", "RUF019", "RUF020", "RUF021", "RUF022", "RUF100", "RUF200",
+ "FURB105", "FURB110", "FURB116", "FURB118", "FURB129", "FURB131", "FURB132", "FURB136", "FURB142", "FURB145", "FURB148", "FURB154", "FURB156", "FURB157", "FURB161", "FURB163", "FURB164", "FURB166", "FURB167", "FURB168", "FURB169", "FURB171", "FURB177", "FURB180", "FURB181", "FURB188", "FURB192",
+ "RUF001", "RUF002", "RUF003", "RUF005", "RUF006", "RUF007", "RUF008", "RUF009", "RUF010", "RUF012", "RUF013", "RUF015", "RUF016", "RUF017", "RUF018", "RUF019", "RUF020", "RUF021", "RUF022", "RUF023", "RUF024", "RUF026", "RUF028", "RUF029", "RUF030", "RUF031", "RUF032", "RUF033", "RUF034", "RUF035", "RUF036", "RUF037", "RUF038", "RUF039", "RUF040", "RUF041", "RUF043", "RUF046", "RUF047", "RUF048", "RUF049", "RUF051", "RUF052", "RUF055", "RUF056", "RUF057", "RUF058", "RUF100", "RUF101", "RUF200",
]
-ignore = ["E501", "E731"]
+ignore = ["E501", "E731", "UP038"]
+[tool.ruff.lint.per-file-ignores]
+"tests/**" = ["PLC2701", "PLR6301"]
[tool.ruff.lint.flake8-comprehensions]
allow-dict-calls-with-keyword-arguments = true
+[tool.ruff.lint.flake8-type-checking]
+exempt-modules = ["typing", "collections.abc"]
[tool.mypy]
warn_unreachable = true
diff --git a/requirements/requirements-style.txt b/requirements/requirements-style.txt
index 103d940..8d98803 100644
--- a/requirements/requirements-style.txt
+++ b/requirements/requirements-style.txt
@@ -1,8 +1,8 @@
#
-# This file is autogenerated by hatch-pip-compile with Python 3.11
+# This file is autogenerated by hatch-pip-compile with Python 3.13
#
# - ruff
#
-ruff==0.2.0
+ruff==0.9.6
# via hatch.envs.style |
3a679a2 to
31564db
Compare
Bumps [mkdocs-get-deps](https://github.com/mkdocs/get-deps) from 0.2.0 to 0.2.2. - [Commits](https://github.com/mkdocs/get-deps/commits) --- updated-dependencies: - dependency-name: mkdocs-get-deps dependency-version: 0.2.2 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
31564db to
fd668e2
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bumps mkdocs-get-deps from 0.2.0 to 0.2.2.
Commits