-
-
Notifications
You must be signed in to change notification settings - Fork 217
Add sphinx project name and version #523
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,2 +1,7 @@ | ||||||||||||||
| import health_check | ||||||||||||||
|
|
||||||||||||||
| project = "Django HealthCheck" | ||||||||||||||
| version = f"{health_check.VERSION[0]}.{health_check.VERSION[1]}" | ||||||||||||||
|
||||||||||||||
| version = f"{health_check.VERSION[0]}.{health_check.VERSION[1]}" | |
| version_info = getattr(health_check, "VERSION", None) | |
| if isinstance(version_info, (tuple, list)) and len(version_info) >= 2: | |
| version = f"{version_info[0]}.{version_info[1]}" | |
| else: | |
| version = getattr(health_check, "__version__", "") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The project name "Django HealthCheck" is inconsistent with the project's established naming convention. Throughout the codebase (README.md, docs/index.rst, pyproject.toml), the project is consistently referred to as "django-health-check". Consider using "django-health-check" instead to maintain consistency with the project's branding and documentation.