-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Upgrade test urlconf
- Loading branch information
Showing
11 changed files
with
79 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
[bumpversion] | ||
current_version = 2.1.1.dev0 | ||
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\.?)(?P<release>[a-z]*)(?P<relver>\d*) | ||
serialize = | ||
{major}.{minor}.{patch}.{release}{relver} | ||
{major}.{minor}.{patch} | ||
commit = True | ||
tag = True | ||
sign_tags = True | ||
tag_name = {new_version} | ||
message = Release {new_version} | ||
|
||
[bumpversion:part:release] | ||
optional_value = gamma | ||
values = | ||
dev | ||
a | ||
b | ||
rc | ||
gamma | ||
|
||
[bumpversion:part:relver] | ||
first_value = 1 | ||
|
||
[bumpversion:file:knocker/__init__.py] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -522,3 +522,4 @@ $RECYCLE.BIN/ | |
|
||
*.sqlite | ||
data | ||
!/.ruff_cache/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Move to ruff |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,19 @@ | ||
import django.views.static | ||
from django.conf import settings | ||
from django.contrib import admin | ||
from django.urls import re_path | ||
from django.urls import path | ||
from django.views.i18n import JavaScriptCatalog | ||
from django.views.static import serve | ||
|
||
from .views import PostDetailView, PostListView, PostMixinDetailView, PostMixinImageObjectDetailView | ||
|
||
try: | ||
from django.views.i18n import JavaScriptCatalog | ||
|
||
javascript_catalog = JavaScriptCatalog.as_view() | ||
except ImportError: | ||
from django.views.i18n import javascript_catalog | ||
|
||
admin.autodiscover() | ||
|
||
urlpatterns = [ | ||
re_path( | ||
r"^media/(?P<path>.*)$", | ||
django.views.static.serve, # NOQA | ||
{"document_root": settings.MEDIA_ROOT, "show_indexes": True}, | ||
), | ||
re_path(r"^jsi18n/(?P<packages>\S+?)/$", javascript_catalog), # NOQA | ||
re_path(r"^mixin/(?P<slug>\w[-\w]*)/$", PostMixinDetailView.as_view(), name="post-detail-mixinx"), | ||
re_path( | ||
r"^mixin_image/(?P<slug>\w[-\w]*)/$", PostMixinImageObjectDetailView.as_view(), name="post-detail-image-mixinx" | ||
), | ||
re_path(r"^(?P<slug>\w[-\w]*)/$", PostDetailView.as_view(), name="post-detail"), | ||
re_path(r"^$", PostListView.as_view(), name="post-list"), | ||
path("admin/", admin.site.urls), | ||
path("media/<str:path>", serve, {"document_root": settings.MEDIA_ROOT, "show_indexes": True}), | ||
path("jsi18n/", JavaScriptCatalog.as_view(), name="javascript-catalog"), | ||
path("mixin/<slug:slug>/", PostMixinDetailView.as_view(), name="post-detail-mixinx"), | ||
path("mixin_image/<slug:slug>/", PostMixinImageObjectDetailView.as_view(), name="post-detail-image-mixinx"), | ||
path("<slug:slug>/", PostDetailView.as_view(), name="post-detail"), | ||
path("", PostListView.as_view(), name="post-list"), | ||
] | ||
try: | ||
urlpatterns.insert(0, re_path(r"^admin/", admin.site.urls)), # NOQA | ||
except Exception: | ||
urlpatterns.insert(0, re_path(r"^admin/", include(admin.site.urls))), # NOQA |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters