forked from graphite-project/graphite-web
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Django 4.2 support (graphite-project#2846)
* Adding django-upgrade pre-commit * Submitting django upgrade result * Include test suite in release (fixing graphite-project#2830) * Fix pyparsing dep version (fixing graphite-project#2834) * Upgrade Django and python version in reqs and tox * adding dependabot * adding new python in tests * Comment out broken tests * fix attime tests for python 3.12 * fix more tests for python 3.12 * simplify tox * fix self.assertRegex test * fix self.assertRegex test * fix self.assertEquals test * pleasing linter * more pleasing linter * trying to fix events test * let's keep doc on py310 * more event test fixes * moving doc to 3.10 * ok, moving back
- Loading branch information
Showing
35 changed files
with
266 additions
and
232 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,12 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: monthly | ||
- package-ecosystem: pip | ||
directory: "/" | ||
schedule: | ||
interval: weekly | ||
time: '10:00' | ||
open-pull-requests-limit: 10 |
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,9 @@ | ||
default_language_version: | ||
python: python3.12 | ||
|
||
repos: | ||
- repo: https://github.com/adamchainz/django-upgrade | ||
rev: "1.20.0" | ||
hooks: | ||
- id: django-upgrade | ||
args: [ --target-version, "4.2" ] |
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,9 @@ | ||
- id: django-upgrade | ||
name: django-upgrade | ||
description: Automatically upgrade your Django project code. | ||
entry: django-upgrade | ||
language: python | ||
types: [python] | ||
# for backward compatibility | ||
files: '' | ||
minimum_pre_commit_version: 0.15.0 |
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
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
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,28 +1,23 @@ | ||
from django.urls import path | ||
from django.urls import re_path | ||
from . import views | ||
|
||
urlpatterns = [ | ||
re_path(r'^/save/(?P<name>[^/]+)$', views.save, name='dashboard_save'), | ||
re_path(r'^/save_template/(?P<name>[^/]+)/(?P<key>[^/]+)$', views.save_template, | ||
name='dashboard_save_template'), | ||
re_path(r'^/load/(?P<name>[^/]+)$', views.load, name='dashboard_load'), | ||
re_path(r'^/load/(?P<name>[^/]+)/(?P<val>[^/]+)$', views.load_template, | ||
name='dashboard_load_template'), | ||
re_path(r'^/load_template/(?P<name>[^/]+)/(?P<val>[^/]+)$', views.load_template, | ||
name='dashboard_load_template'), | ||
re_path(r'^/delete/(?P<name>[^/]+)$', views.delete, name='dashboard_delete'), | ||
re_path(r'^/create-temporary/?$', views.create_temporary, | ||
name='dashboard_create_temporary'), | ||
re_path(r'^/email$', views.email, name='dashboard_email'), | ||
path('/save/<str:name>', views.save, name='dashboard_save'), | ||
path('/save_template/<str:name>/<str:key>', views.save_template, name='dashboard_save_template'), | ||
path('/load/<str:name>', views.load, name='dashboard_load'), | ||
path('/load/<str:name>/<str:val>', views.load_template, name='dashboard_load_template'), | ||
path('/load_template/<str:name>/<str:val>', views.load_template, name='dashboard_load_template'), | ||
path('/delete/<str:name>', views.delete, name='dashboard_delete'), | ||
re_path(r'^/create-temporary/?$', views.create_temporary, name='dashboard_create_temporary'), | ||
path('/email', views.email, name='dashboard_email'), | ||
re_path(r'^/find/?$', views.find, name='dashboard_find'), | ||
re_path(r'^/delete_template/(?P<name>[^/]+)$', views.delete_template, | ||
name='dashboard_delete_template'), | ||
path('/delete_template/<str:name>', views.delete_template, name='dashboard_delete_template'), | ||
re_path(r'^/find_template/?$', views.find_template, name='dashboard_find_template'), | ||
re_path(r'^/login/?$', views.user_login, name='dashboard_login'), | ||
re_path(r'^/logout/?$', views.user_logout, name='dashboard_logout'), | ||
re_path(r'^/help/?$', views.help, name='dashboard_help'), | ||
re_path(r'^/(?P<name>[^/]+)/(?P<val>[^/]+)$', views.template, | ||
name='dashboard_template'), | ||
re_path(r'^/(?P<name>[^/]+)$', views.dashboard, name='dashboard'), | ||
path('/<str:name>/<str:val>', views.template, name='dashboard_template'), | ||
path('/<str:name>', views.dashboard, name='dashboard'), | ||
re_path(r'^/?$', views.dashboard, name='dashboard'), | ||
] |
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
Oops, something went wrong.