$def with (project, repo, readme, package_releases, pyproject, api_python, test_results, test_coverage, mentions, issues) $var breadcrumbs = ("projects", "Projects") $ title = project $var title_classes = ["p-name"] $var article_classes = ["h-ragt-ag-project"] $ likes = 0 $for mention in mentions: $if mention["data"]["comment_type"][0] == "like": $ likes += 1 $elif mention["data"]["comment_type"][0] == "like": $ likes += 1
Issues $if issues: $issues
$if likes:$emoji.emojize(":red_heart:") $likes
$#$commit["hash"][:7].upper()
$len(repo.log()) commits
\ $for file in known_files: $ file, is_dir, _ = str(file).partition("/") $if file == prev_file: $continue $file\ $if is_dir: /\ $ prev_file = file $if not loop.last: ,
$git_url 📋$if readme:
$metrics["lines"][1]
LLOC,
$if metrics["maintainability"] >= 19:
highly maintainable
$elif metrics["maintainability"] >= 9:
moderately maintainable
$else:
difficult to maintain
$metrics["lines"][1]
LLOC,
$if metrics["maintainability"] >= 19:
highly maintainable
$elif metrics["maintainability"] >= 9:
moderately maintainable
$else:
difficult to maintain
$for obj_name, obj_complexity in metrics["complexity"].items():
$obj_name $obj_complexity
{py_project.pop('version')}
"
$py_project.pop("description")
$if keywords := py_project.pop("keywords", None):
$for keyword in keywords:
$keyword\
$if not loop.last:
,
Package
$py_project_name
$for source in py_project.pop("source", []):
$if source["name"] == "main":
@$source["url"].removeprefix("https://")
Requires
python $py_deps.pop("python")
$for dep, version in sorted(py_deps.items()):
$ dep_nobreak = dep.replace("-", "-")
$:dep_nobreak
\
$if not loop.last:
,
Provides
$if plugins:
$if webapps := plugins.pop("webapps", None):
webapps (\
$for webapp, webapp_callable in webapps.items():
$ webapp_path = webapp_callable.replace(".", "/").replace(":", "#")
$webapp\
$if not loop.last:
, \
)
$if websites := plugins.pop("websites", None):
websites (\
$for website, website_callable in websites.items():
$ website_path = website_callable.replace(".", "/").replace(":", "#")
$website\
$if not loop.last:
, \
)
$if scripts:
scripts (\
$for script, script_callable in scripts.items():
$ script_path = script_callable.replace(".", "/").replace(":", "#")
$script\
$if not loop.last:
, \
)
$if plugins or scripts:
License
\
$:licenses[license]
Releases ($len(package_releases))
v$release