mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-11 22:41:55 +08:00
Updates deps, adds mypy@0.920 compat, adds dependabot
This commit is contained in:
15
.github/dependabot.yml
vendored
Normal file
15
.github/dependabot.yml
vendored
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
version: 2
|
||||||
|
updates:
|
||||||
|
- package-ecosystem: pip
|
||||||
|
directory: "/"
|
||||||
|
schedule:
|
||||||
|
interval: daily
|
||||||
|
time: "02:00"
|
||||||
|
open-pull-requests-limit: 10
|
||||||
|
|
||||||
|
- package-ecosystem: github-actions
|
||||||
|
directory: "/"
|
||||||
|
schedule:
|
||||||
|
interval: daily
|
||||||
|
time: "02:00"
|
||||||
|
open-pull-requests-limit: 10
|
||||||
@@ -13,12 +13,12 @@ repos:
|
|||||||
- id: check-merge-conflict
|
- id: check-merge-conflict
|
||||||
- id: end-of-file-fixer
|
- id: end-of-file-fixer
|
||||||
- repo: https://github.com/asottile/pyupgrade
|
- repo: https://github.com/asottile/pyupgrade
|
||||||
rev: v2.20.0
|
rev: v2.29.1
|
||||||
hooks:
|
hooks:
|
||||||
- id: pyupgrade
|
- id: pyupgrade
|
||||||
args: ["--py36-plus"]
|
args: ["--py36-plus"]
|
||||||
- repo: https://github.com/pre-commit/mirrors-isort
|
- repo: https://github.com/pre-commit/mirrors-isort
|
||||||
rev: v5.9.1
|
rev: v5.9.3
|
||||||
hooks:
|
hooks:
|
||||||
- id: isort
|
- id: isort
|
||||||
name: isort (python)
|
name: isort (python)
|
||||||
@@ -28,7 +28,7 @@ repos:
|
|||||||
types: [pyi]
|
types: [pyi]
|
||||||
args: ["--profile", "black"]
|
args: ["--profile", "black"]
|
||||||
- repo: https://github.com/psf/black
|
- repo: https://github.com/psf/black
|
||||||
rev: 21.6b0
|
rev: 21.12b0
|
||||||
hooks:
|
hooks:
|
||||||
- id: black
|
- id: black
|
||||||
- repo: https://gitlab.com/pycqa/flake8
|
- repo: https://gitlab.com/pycqa/flake8
|
||||||
|
|||||||
@@ -214,7 +214,7 @@ class DjangoContext:
|
|||||||
field_name = field.name
|
field_name = field.name
|
||||||
gfk_info = helpers.lookup_class_typeinfo(api, field.__class__)
|
gfk_info = helpers.lookup_class_typeinfo(api, field.__class__)
|
||||||
if gfk_info is None:
|
if gfk_info is None:
|
||||||
gfk_set_type = AnyType(TypeOfAny.unannotated)
|
gfk_set_type: MypyType = AnyType(TypeOfAny.unannotated)
|
||||||
else:
|
else:
|
||||||
gfk_set_type = helpers.get_private_descriptor_type(
|
gfk_set_type = helpers.get_private_descriptor_type(
|
||||||
gfk_info, "_pyi_private_set_type", is_nullable=True
|
gfk_info, "_pyi_private_set_type", is_nullable=True
|
||||||
|
|||||||
Reference in New Issue
Block a user