mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-06 12:14:28 +08:00
* added tags for user models * type test for HttpRequest.user * test for User and AnonymousUser tags * httrequest test fix * checking python version fix for readibility * Rewrite version check for readability * Annotate is_authenticated/is_anonymous with Literal-type * Add auth in INSTALLED_APPS in test * Fix wrong type assertion in test * Fix misconception of how branch-testing works * Remove user from WSGIRequest * Change HttpRequest-transformer to set user-type to include AnonymousUser * Add check for anonymous_user_info=None to appease mypy * Isort transformers/request * Remove trailing whitespace * Remove unused import Co-authored-by: Kacper Szmigiel <szmigielkacper@gmai.com>
15 lines
233 B
INI
15 lines
233 B
INI
[flake8]
|
|
filename =
|
|
*.pyi
|
|
exclude =
|
|
django-sources
|
|
test-data
|
|
mypy_django_plugin
|
|
scripts
|
|
select = F401, Y
|
|
max_line_length = 120
|
|
per-file-ignores =
|
|
*__init__.pyi: F401
|
|
base_user.pyi: Y003
|
|
models.pyi: Y003
|