"
for backlink_type, backlink_list in backlinks:
yield f"
{verbose_type[backlink_type]}:"
yield "
"
for backlink in sorted(backlink_list, key: lambda b: b.crumbs):
yield "- "
for crumb in backlink.crumbs:
if crumb.url and crumb.title:
yield f'{crumb.title}'
elif crumb.title:
yield f"{crumb.title}"
yield "
"
yield "
"
yield "
"
```
mkdocs-autorefs-1.4.2/config/ 0000775 0000000 0000000 00000000000 15013077254 0016075 5 ustar 00root root 0000000 0000000 mkdocs-autorefs-1.4.2/config/coverage.ini 0000664 0000000 0000000 00000000610 15013077254 0020366 0 ustar 00root root 0000000 0000000 [coverage:run]
branch = true
parallel = true
source =
src/
tests/
[coverage:paths]
equivalent =
src/
.venv/lib/*/site-packages/
.venvs/*/lib/*/site-packages/
[coverage:report]
ignore_errors = True
precision = 2
omit =
src/*/__init__.py
src/*/__main__.py
tests/__init__.py
exclude_lines =
pragma: no cover
if TYPE_CHECKING
[coverage:json]
output = htmlcov/coverage.json
mkdocs-autorefs-1.4.2/config/git-changelog.toml 0000664 0000000 0000000 00000000340 15013077254 0021477 0 ustar 00root root 0000000 0000000 bump = "auto"
convention = "angular"
in-place = true
output = "CHANGELOG.md"
parse-refs = false
parse-trailers = true
sections = ["build", "deps", "feat", "fix", "refactor"]
template = "keepachangelog"
versioning = "pep440"
mkdocs-autorefs-1.4.2/config/mypy.ini 0000664 0000000 0000000 00000000162 15013077254 0017573 0 ustar 00root root 0000000 0000000 [mypy]
ignore_missing_imports = true
exclude = tests/fixtures/
warn_unused_ignores = true
show_error_codes = true
mkdocs-autorefs-1.4.2/config/pytest.ini 0000664 0000000 0000000 00000000453 15013077254 0020130 0 ustar 00root root 0000000 0000000 [pytest]
python_files =
test_*.py
addopts =
--cov
--cov-append
--cov-config config/coverage.ini
testpaths =
tests
# action:message_regex:warning_class:module_regex:line
filterwarnings =
error
# TODO: remove once pytest-xdist 4 is released
ignore:.*rsyncdir:DeprecationWarning:xdist
mkdocs-autorefs-1.4.2/config/ruff.toml 0000664 0000000 0000000 00000004423 15013077254 0017737 0 ustar 00root root 0000000 0000000 target-version = "py39"
line-length = 120
[lint]
exclude = [
"tests/fixtures/*.py",
]
select = [
"A", "ANN", "ARG",
"B", "BLE",
"C", "C4",
"COM",
"D", "DTZ",
"E", "ERA", "EXE",
"F", "FBT",
"G",
"I", "ICN", "INP", "ISC",
"N",
"PGH", "PIE", "PL", "PLC", "PLE", "PLR", "PLW", "PT", "PYI",
"Q",
"RUF", "RSE", "RET",
"S", "SIM", "SLF",
"T", "T10", "T20", "TCH", "TID", "TRY",
"UP",
"W",
"YTT",
]
ignore = [
"A001", # Variable is shadowing a Python builtin
"ANN101", # Missing type annotation for self
"ANN102", # Missing type annotation for cls
"ANN204", # Missing return type annotation for special method __str__
"ANN401", # Dynamically typed expressions (typing.Any) are disallowed
"ARG005", # Unused lambda argument
"C901", # Too complex
"D105", # Missing docstring in magic method
"D417", # Missing argument description in the docstring
"E501", # Line too long
"ERA001", # Commented out code
"G004", # Logging statement uses f-string
"PLR0911", # Too many return statements
"PLR0912", # Too many branches
"PLR0913", # Too many arguments to function call
"PLR0915", # Too many statements
"SLF001", # Private member accessed
"TRY003", # Avoid specifying long messages outside the exception class
]
[lint.per-file-ignores]
"src/**/cli.py" = [
"T201", # Print statement
]
"src/*/debug.py" = [
"T201", # Print statement
]
"!src/*/*.py" = [
"D100", # Missing docstring in public module
]
"!src/**.py" = [
"D101", # Missing docstring in public class
"D103", # Missing docstring in public function
]
"scripts/*.py" = [
"INP001", # File is part of an implicit namespace package
"T201", # Print statement
]
"tests/**.py" = [
"ARG005", # Unused lambda argument
"FBT001", # Boolean positional arg in function definition
"PLR2004", # Magic value used in comparison
"S101", # Use of assert detected
]
[lint.flake8-quotes]
docstring-quotes = "double"
[lint.flake8-tidy-imports]
ban-relative-imports = "all"
[lint.isort]
known-first-party = ["mkdocs_autorefs"]
[lint.pydocstyle]
convention = "google"
[format]
exclude = [
"tests/fixtures/*.py",
]
docstring-code-format = true
docstring-code-line-length = 80
mkdocs-autorefs-1.4.2/config/vscode/ 0000775 0000000 0000000 00000000000 15013077254 0017360 5 ustar 00root root 0000000 0000000 mkdocs-autorefs-1.4.2/config/vscode/launch.json 0000664 0000000 0000000 00000002673 15013077254 0021535 0 ustar 00root root 0000000 0000000 {
"version": "0.2.0",
"configurations": [
{
"name": "python (current file)",
"type": "debugpy",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal",
"justMyCode": false,
"args": "${command:pickArgs}"
},
{
"name": "run",
"type": "debugpy",
"request": "launch",
"module": "mkdocs_autorefs",
"console": "integratedTerminal",
"justMyCode": false,
"args": "${command:pickArgs}"
},
{
"name": "docs",
"type": "debugpy",
"request": "launch",
"module": "mkdocs",
"justMyCode": false,
"args": [
"serve",
"-v"
]
},
{
"name": "test",
"type": "debugpy",
"request": "launch",
"module": "pytest",
"justMyCode": false,
"args": [
"-c=config/pytest.ini",
"-vvv",
"--no-cov",
"--dist=no",
"tests",
"-k=${input:tests_selection}"
]
}
],
"inputs": [
{
"id": "tests_selection",
"type": "promptString",
"description": "Tests selection",
"default": ""
}
]
} mkdocs-autorefs-1.4.2/config/vscode/settings.json 0000664 0000000 0000000 00000001704 15013077254 0022115 0 ustar 00root root 0000000 0000000 {
"files.watcherExclude": {
"**/.venv*/**": true,
"**/.venvs*/**": true,
"**/venv*/**": true
},
"mypy-type-checker.args": [
"--config-file=config/mypy.ini"
],
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true,
"python.testing.pytestArgs": [
"--config-file=config/pytest.ini"
],
"ruff.enable": true,
"ruff.format.args": [
"--config=config/ruff.toml"
],
"ruff.lint.args": [
"--config=config/ruff.toml"
],
"yaml.schemas": {
"https://squidfunk.github.io/mkdocs-material/schema.json": "mkdocs.yml"
},
"yaml.customTags": [
"!ENV scalar",
"!ENV sequence",
"!relative scalar",
"tag:yaml.org,2002:python/name:materialx.emoji.to_svg",
"tag:yaml.org,2002:python/name:materialx.emoji.twemoji",
"tag:yaml.org,2002:python/name:pymdownx.superfences.fence_code_format"
]
} mkdocs-autorefs-1.4.2/config/vscode/tasks.json 0000664 0000000 0000000 00000004605 15013077254 0021405 0 ustar 00root root 0000000 0000000 {
"version": "2.0.0",
"tasks": [
{
"label": "changelog",
"type": "process",
"command": "scripts/make",
"args": ["changelog"]
},
{
"label": "check",
"type": "process",
"command": "scripts/make",
"args": ["check"]
},
{
"label": "check-quality",
"type": "process",
"command": "scripts/make",
"args": ["check-quality"]
},
{
"label": "check-types",
"type": "process",
"command": "scripts/make",
"args": ["check-types"]
},
{
"label": "check-docs",
"type": "process",
"command": "scripts/make",
"args": ["check-docs"]
},
{
"label": "check-api",
"type": "process",
"command": "scripts/make",
"args": ["check-api"]
},
{
"label": "clean",
"type": "process",
"command": "scripts/make",
"args": ["clean"]
},
{
"label": "docs",
"type": "process",
"command": "scripts/make",
"args": ["docs"]
},
{
"label": "docs-deploy",
"type": "process",
"command": "scripts/make",
"args": ["docs-deploy"]
},
{
"label": "format",
"type": "process",
"command": "scripts/make",
"args": ["format"]
},
{
"label": "release",
"type": "process",
"command": "scripts/make",
"args": ["release", "${input:version}"]
},
{
"label": "setup",
"type": "process",
"command": "scripts/make",
"args": ["setup"]
},
{
"label": "test",
"type": "process",
"command": "scripts/make",
"args": ["test", "coverage"],
"group": "test"
},
{
"label": "vscode",
"type": "process",
"command": "scripts/make",
"args": ["vscode"]
}
],
"inputs": [
{
"id": "version",
"type": "promptString",
"description": "Version"
}
]
} mkdocs-autorefs-1.4.2/docs/ 0000775 0000000 0000000 00000000000 15013077254 0015560 5 ustar 00root root 0000000 0000000 mkdocs-autorefs-1.4.2/docs/.overrides/ 0000775 0000000 0000000 00000000000 15013077254 0017640 5 ustar 00root root 0000000 0000000 mkdocs-autorefs-1.4.2/docs/.overrides/partials/ 0000775 0000000 0000000 00000000000 15013077254 0021457 5 ustar 00root root 0000000 0000000 mkdocs-autorefs-1.4.2/docs/.overrides/partials/comments.html 0000664 0000000 0000000 00000004140 15013077254 0024171 0 ustar 00root root 0000000 0000000