-
-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into fix/strpromise
- Loading branch information
Showing
72 changed files
with
1,302 additions
and
1,216 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,45 @@ | ||
# Run pre-commit autoupdate every day at midnight | ||
# and create a pull request if any changes | ||
# Copied from | ||
# https://github.com/cookiecutter/cookiecutter-django | ||
|
||
name: Pre-commit auto-update | ||
|
||
on: | ||
schedule: | ||
- cron: "15 2 * * *" | ||
workflow_dispatch: # to trigger manually | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
auto-update: | ||
# Disables this workflow from running in a repository that is not part of the indicated organization/user | ||
if: github.repository_owner == 'typeddjango' | ||
permissions: | ||
contents: write # for peter-evans/create-pull-request to create branch | ||
pull-requests: write # for peter-evans/create-pull-request to create a PR | ||
|
||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.9" | ||
|
||
- name: Install pre-commit | ||
run: pip install pre-commit | ||
|
||
- name: Autoupdate deps | ||
run: pre-commit autoupdate | ||
|
||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v4 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
branch: update/pre-commit-autoupdate | ||
title: Auto-update pre-commit hooks | ||
commit-message: Auto-update pre-commit hooks | ||
body: Update versions of tools in pre-commit configs to latest version | ||
labels: dependencies |
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,5 +1,6 @@ | ||
*.egg-info | ||
.DS_Store | ||
.python-version | ||
.idea/ | ||
.mypy_cache/ | ||
.pytest_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
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,8 +1,10 @@ | ||
wheel | ||
gitpython==3.1.27 | ||
pre-commit==2.19.0 | ||
pytest==7.1.2 | ||
pytest-mypy-plugins==1.9.3 | ||
djangorestframework==3.13.1 | ||
types-pytz==2021.3.8 | ||
-e . | ||
gitpython==3.1.29 | ||
pre-commit==2.20.0 | ||
pytest==7.2.0 | ||
pytest-mypy-plugins==1.10.1 | ||
djangorestframework==3.14.0 | ||
types-pytz==2022.6.0.1 | ||
django-stubs==1.13.0 | ||
django-stubs-ext==0.7.0 | ||
-e .[compatible-mypy,coreapi,markdown] |
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 +1 @@ | ||
default_app_config: str = ... | ||
default_app_config: str |
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,6 +1,6 @@ | ||
from rest_framework import serializers | ||
|
||
class AuthTokenSerializer(serializers.Serializer): | ||
username: serializers.CharField = ... | ||
password: serializers.CharField = ... | ||
token: serializers.CharField = ... | ||
username: serializers.CharField | ||
password: serializers.CharField | ||
token: serializers.CharField |
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,12 +1,12 @@ | ||
from typing import Any, Type | ||
from typing import Any | ||
|
||
from rest_framework.request import Request | ||
from rest_framework.response import Response | ||
from rest_framework.serializers import Serializer | ||
from rest_framework.views import APIView, AsView, GenericView | ||
|
||
class ObtainAuthToken(APIView): | ||
serializer_class: Type[Serializer] = ... | ||
serializer_class: type[Serializer] | ||
def post(self, request: Request, *args: Any, **kwargs: Any) -> Response: ... | ||
|
||
obtain_auth_token: AsView[GenericView] = ... | ||
obtain_auth_token: AsView[GenericView] |
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,3 +1,3 @@ | ||
from typing import Any, List | ||
from typing import Any | ||
|
||
def pagination_system_check(app_configs: Any, **kwargs: Any) -> List[Any]: ... | ||
def pagination_system_check(app_configs: Any, **kwargs: Any) -> list[Any]: ... |
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.