{"id":16360211,"url":"https://github.com/larsrollik/templatepy","last_synced_at":"2026-05-24T08:04:30.102Z","repository":{"id":41900354,"uuid":"370470893","full_name":"larsrollik/templatepy","owner":"larsrollik","description":"Template repository for best-practice Python packages","archived":false,"fork":false,"pushed_at":"2026-05-23T23:06:34.000Z","size":867,"stargazers_count":6,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-05-23T23:10:28.321Z","etag":null,"topics":["build-system","bumpversion","community","linting","package","pre-commit","pypi","python","template","zenodo","zenodo-upload"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/larsrollik.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":"CITATION.cff","codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-05-24T20:01:57.000Z","updated_at":"2026-05-23T23:06:37.000Z","dependencies_parsed_at":"2024-10-11T02:10:57.942Z","dependency_job_id":"c584bce8-4fb3-45d5-9299-c64fcfda3c1b","html_url":"https://github.com/larsrollik/templatepy","commit_stats":{"total_commits":69,"total_committers":3,"mean_commits":23.0,"dds":0.3188405797101449,"last_synced_commit":"428cf34f5751aa92a96202ccd453499f37c883b3"},"previous_names":[],"tags_count":30,"template":true,"template_full_name":null,"purl":"pkg:github/larsrollik/templatepy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/larsrollik%2Ftemplatepy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/larsrollik%2Ftemplatepy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/larsrollik%2Ftemplatepy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/larsrollik%2Ftemplatepy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/larsrollik","download_url":"https://codeload.github.com/larsrollik/templatepy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/larsrollik%2Ftemplatepy/sbom","scorecard":{"id":579383,"data":{"date":"2025-08-11","repo":{"name":"github.com/larsrollik/templatepy","commit":"3ba512b993f796fb278959c7aacb4b3d54afb325"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.7,"checks":[{"name":"Maintained","score":4,"reason":"5 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 4","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/20 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":0,"reason":"dangerous workflow patterns detected","details":["Warn: script injection with untrusted input ' github.event.pull_request.head.ref ': .github/workflows/pr-to-prod.yaml:43"],"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: jobLevel 'actions' permission set to 'write': .github/workflows/pr-to-prod.yaml:17","Warn: jobLevel 'contents' permission set to 'write': .github/workflows/pr-to-prod.yaml:16","Warn: jobLevel 'contents' permission set to 'write': .github/workflows/release-to-deploy.yaml:68","Warn: no topLevel permission defined: .github/workflows/pr-to-prod.yaml:1","Warn: no topLevel permission defined: .github/workflows/pre-pr-checks.yaml:1","Warn: no topLevel permission defined: .github/workflows/release-to-deploy.yaml:1"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr-to-prod.yaml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/larsrollik/templatepy/pr-to-prod.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pre-pr-checks.yaml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/larsrollik/templatepy/pre-pr-checks.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pre-pr-checks.yaml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/larsrollik/templatepy/pre-pr-checks.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pre-pr-checks.yaml:58: update your workflow using https://app.stepsecurity.io/secureworkflow/larsrollik/templatepy/pre-pr-checks.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pre-pr-checks.yaml:61: update your workflow using https://app.stepsecurity.io/secureworkflow/larsrollik/templatepy/pre-pr-checks.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pre-pr-checks.yaml:91: update your workflow using https://app.stepsecurity.io/secureworkflow/larsrollik/templatepy/pre-pr-checks.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pre-pr-checks.yaml:94: update your workflow using https://app.stepsecurity.io/secureworkflow/larsrollik/templatepy/pre-pr-checks.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release-to-deploy.yaml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/larsrollik/templatepy/release-to-deploy.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release-to-deploy.yaml:70: update your workflow using https://app.stepsecurity.io/secureworkflow/larsrollik/templatepy/release-to-deploy.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release-to-deploy.yaml:84: update your workflow using https://app.stepsecurity.io/secureworkflow/larsrollik/templatepy/release-to-deploy.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release-to-deploy.yaml:86: update your workflow using https://app.stepsecurity.io/secureworkflow/larsrollik/templatepy/release-to-deploy.yaml/main?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/pre-pr-checks.yaml:44","Warn: pipCommand not pinned by hash: .github/workflows/pre-pr-checks.yaml:45","Warn: pipCommand not pinned by hash: .github/workflows/pre-pr-checks.yaml:78","Warn: pipCommand not pinned by hash: .github/workflows/pre-pr-checks.yaml:79","Warn: pipCommand not pinned by hash: .github/workflows/release-to-deploy.yaml:24","Warn: pipCommand not pinned by hash: .github/workflows/release-to-deploy.yaml:91","Warn: pipCommand not pinned by hash: .github/workflows/release-to-deploy.yaml:92","Info:   0 out of  10 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   0 out of   7 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: BSD 3-Clause \"New\" or \"Revised\" License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":2,"reason":"SAST tool is not run on all commits -- score normalized to 2","details":["Warn: 3 commits out of 14 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-20T18:46:33.793Z","repository_id":41900354,"created_at":"2025-08-20T18:46:33.793Z","updated_at":"2025-08-20T18:46:33.793Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33426014,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-23T22:14:44.296Z","status":"online","status_checked_at":"2026-05-24T02:00:06.296Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["build-system","bumpversion","community","linting","package","pre-commit","pypi","python","template","zenodo","zenodo-upload"],"created_at":"2024-10-11T02:10:55.181Z","updated_at":"2026-05-24T08:04:30.096Z","avatar_url":"https://github.com/larsrollik.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# templatepy\n\n[![DOI](https://zenodo.org/badge/doi/10.5281/zenodo.20360320.svg)](https://doi.org/10.5281/zenodo.20360320)\n\nCopier template for modern Python packages.\n\n**[→ Full documentation](https://larsrollik.github.io/templatepy)**\n\n## Stack\n\n| Tool | Role |\n|---|---|\n| uv | dependency management, virtual environments |\n| hatchling + hatch-vcs | build backend; version from git tags |\n| commitizen | Conventional Commits enforcement; auto bump on merge |\n| ruff | linting + formatting |\n| mypy | static type checking |\n| pytest + pytest-cov | testing with coverage |\n| gitleaks | secret scanning |\n\n## Quickstart\n\n```sh\nuv tool install copier\ncopier copy gh:larsrollik/templatepy my-new-project\ncd my-new-project\ngit init \u0026\u0026 git add -A \u0026\u0026 git commit -m \"chore: initial commit from templatepy\"\nuv sync --extra dev\nuv run pre-commit install --hook-type pre-commit --hook-type commit-msg\n```\n\n## Update existing project\n\n```sh\ncd my-existing-project \u0026\u0026 copier update\n```\n\n## Release flow\n\n```\nfeature branch  →  PR  →  CI gate (lint + test + secrets) must pass\n                           merge blocked until green\n                               ↓\n                           merge to main (rebase)\n                               ↓\n                           bump.yml fires: cz bump → tag vX.Y.Z\n                               ↓\n                           release.yml fires on tag:\n                           → GitHub release (wheel + sdist attached)\n                           → PyPI via OIDC trusted publishing (no stored token)\n                           → Zenodo webhook (if enabled)\n```\n\n## PyPI setup (one-time per repo)\n\nUses OIDC trusted publishing — no API token stored in GitHub secrets.\n\n1. pypi.org → project → Settings → Publishing → Add trusted publisher\n2. Owner: `\u003cgithub-user\u003e`, Repository: `\u003crepo\u003e`, Workflow: `release.yml`\n3. Done — the workflow handles authentication automatically.\n\n## Branch protection (required for CI gate)\n\nRepo settings → Branches → Add rule for `main`:\n- ✅ Require status checks: `CI` job\n- ✅ Require branches to be up to date\n- ✅ Require linear history\n\nFor the auto-bump workflow to push the bump commit back to main:\n- ✅ Allow specified actors to bypass → add `github-actions[bot]`\n\n## Docs\n\n```sh\nuv run mkdocs serve\n```\n\nDeploy to GitHub Pages on push to main via `docs.yml` (automatic).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flarsrollik%2Ftemplatepy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flarsrollik%2Ftemplatepy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flarsrollik%2Ftemplatepy/lists"}