mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-12 15:01:55 +08:00
Add end-of-file-fixer hook to pre-commit (#668)
This commit is contained in:
@@ -11,6 +11,7 @@ repos:
|
||||
- id: check-executables-have-shebangs
|
||||
- id: debug-statements
|
||||
- id: check-merge-conflict
|
||||
- id: end-of-file-fixer
|
||||
- repo: https://github.com/asottile/pyupgrade
|
||||
rev: v2.20.0
|
||||
hooks:
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
|
||||
|
||||
@@ -25,4 +25,3 @@
|
||||
@non_atomic_requests
|
||||
def view_func(request: HttpRequest, arg: str) -> HttpResponse: ...
|
||||
reveal_type(view_func) # N: Revealed type is "def (request: django.http.request.HttpRequest, arg: builtins.str) -> django.http.response.HttpResponse"
|
||||
|
||||
|
||||
@@ -8,4 +8,3 @@
|
||||
models.Index("foo", name="test", opclasses=["bar"])
|
||||
models.Index("foo", name="test", condition=models.Q(foo=1))
|
||||
models.Index("foo", name="test", include=["bar"])
|
||||
|
||||
|
||||
@@ -69,4 +69,3 @@
|
||||
reveal_type(request.user) # N: Revealed type is "django.contrib.auth.models.User"
|
||||
custom_settings: |
|
||||
INSTALLED_APPS = ('django.contrib.contenttypes', 'django.contrib.auth')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user