Commit f111e5d
🛠️ fix: resolve all critical bugs, broken refs, and template gaps
A comprehensive audit and fix pass addressing 56 identified issues
across build-breaking bugs, broken references, missing files, and
best-practice violations. The template is now production-ready
out-of-the-box.
--- Critical Fixes (build-breaking) ---
- pkg-name/VERSION: remove leading `v` (PEP 440 canonical form)
- pkg-name/__init__.py: use context manager for VERSION file handle
- .flake8: fix typo `exclue` → `exclude` (exclude directive was silently ignored)
- Dockerfile: update base image python:3.8 → python:3.10-slim (EOL fix)
- Dockerfile: fix `RUN pip install <pkg-name>` placeholder → `pip install .`
- Dockerfile: rename INSTALL_PATH helloworld → app; remove nano/net-tools
- docs/index.md: rewrite entirely (was copied from ds-gringotts with lorem ipsum,
wrong title, wrong badges, wrong issue/contributing links)
- docs/conf.py: comment out favicon pointing to non-existent path; use context
manager for VERSION read; dynamic copyright year; sys.path.insert(0, ...)
- docs/about/objective.md: create (referenced in toctree, file was missing)
- docs/about/installation.md: create (referenced in toctree, file was missing)
- .travis.yml: DELETE (legacy CI; tested Python 3.7/3.9 which violate
requires-python >= 3.10; GitHub Actions already covers CI)
--- High Priority Fixes ---
- pyproject.toml: add Python 3.12 classifier (was skipped between 3.11→3.13)
- pyproject.toml: fix URL keys to Title Case (Homepage, Repository per PEP 621)
- pyproject.toml: add explicit `dependencies = []`
- pyproject.toml: fix dynamic version to `{file = "pkg-name/VERSION"}` instead
of `{attr = "pkg-name.__version__"}` (hyphen in module name breaks attr lookup)
- pyproject.toml: add [tool.pytest.ini_options] (testpaths, addopts)
- setup.py: DELETE (redundant with pyproject.toml; had unfilled placeholders
for description, url, and author_email)
- .github/workflows/code-linting.yml: downgrade actions/checkout@v6→@v4 and
actions/setup-python@v6→@v5 (v6 does not exist); add pull_request: trigger
- .readthedocs.yaml: set fail_on_warning: true; add `pip install .` so autodoc
can import the package; remove unused submodules config
- .dockerignore: expand from 2 entries to 20 (docs, assets, CI configs,
__pycache__, dist, build, venv, .coverage, etc.)
- CHANGELOG.md: fix unclosed </summary> tag; add proper [Unreleased] section
- LICENSE: update copyright year 2021 → 2021-2026
- .gitattributes: fix typo `charecter` → `character`
- .github/dependabot.yml: fix typo `dependecies` → `dependencies`; remove
stale click/celery ignore entries (celery >=5.2 works with click >=8)
- pkg-name/api/__init__.py: add `__all__ = []` to make wildcard export explicit
- pkg-name/errors/errors.py: add PkgNameError base exception class
- pkg-name/errors/warnings.py: add PkgNameWarning base warning class
- docs/requirements-doc.txt: loosen pinning from `==` to `~=` for security patches
--- New Files Added ---
- .github/workflows/tests.yml: pytest CI on Python 3.10/3.12/3.13
- .github/workflows/publish.yml: PyPI publish via Trusted Publisher (OIDC) on release
- .github/ISSUE_TEMPLATE/bug_report.md: structured bug report template
- .github/ISSUE_TEMPLATE/feature_request.md: structured feature request template
- .github/PULL_REQUEST_TEMPLATE.md: PR checklist template
- CONTRIBUTING.md: dev setup, coding standards, test/docs build instructions
- CODE_OF_CONDUCT.md: Contributor Covenant v2.1
- SECURITY.md: vulnerability disclosure policy
- .pre-commit-config.yaml: pre-commit hooks (trailing-whitespace, end-of-file,
check-yaml/toml/json, debug-statements, flake8 syntax errors)
- tests/__init__.py + tests/test_package.py: placeholder test suite
- conftest.py: pytest shared fixtures entrypoint
- docs/_static/.gitkeep: required by docs/conf.py html_static_path
- docs/_templates/.gitkeep: required by docs/conf.py templates_path
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent a2f3e71 commit f111e5d
File tree
36 files changed
+556
-146
lines changed- .github
- ISSUE_TEMPLATE
- workflows
- docs
- _static
- _templates
- about
- pkg-name
- api
- errors
- tests
36 files changed
+556
-146
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
| 27 | + | |
| 28 | + | |
36 | 29 | | |
37 | 30 | | |
38 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
| |||
17 | 19 | | |
18 | 20 | | |
19 | 21 | | |
20 | | - | |
| 22 | + | |
21 | 23 | | |
22 | | - | |
| 24 | + | |
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
0 commit comments