-
Notifications
You must be signed in to change notification settings - Fork 319
/
Copy pathpyproject.toml
89 lines (85 loc) · 2.08 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
[tool.isort]
profile = "black"
line_length=120
float_to_top=true
py_version=311
extend_skip_glob = "**/migrations/**"
[tool.black]
line-length = 120
target-version = ["py311"]
force-exclude = "migrations"
[tool.mypy]
mypy_path = "$MYPY_CONFIG_FILE_DIR/type_stubs"
implicit_reexport = true
plugins = [
"mypy_django_plugin.main",
"mypy_drf_plugin.main",
]
exclude = [
# TOML's double-quoted strings require escaping backslashes
"tests/test_.*\\.py$", # test files
"migrations/\\d*.*\\.py", # migration files
]
disable_error_code = [
"abstract",
"annotation-unchecked",
"arg-type",
"assignment",
"attr-defined",
"call-arg",
"call-overload",
"has-type",
"index",
"misc",
"name-defined",
"operator",
"return-value",
"typeddict-item",
"union-attr",
]
# mypy per-module options
[[tool.mypy.overrides]]
module = [
# the following setting should eventually be removed, one module at a time.
# It's only being added to temporarily surpress the:
# "module is installed, but missing library stubs or py.typed marker" errors
# we can slowly either start to add library stubs ourselves, or try and upgrade these libraries to see if
# a newer version includes type stubs
"anymail.*",
"celery.utils.debug",
"debug_toolbar.*",
"django_deprecate_fields.*",
"django_migration_linter",
"django_sns_view.*",
"factory.*",
"fcm_django.*",
"firebase_admin.*",
"google.auth.exceptions.*",
"googleapiclient.discovery.*",
"googleapiclient.errors.*",
"google.oauth2.credentials.*",
"httpretty.*",
"humanize.*",
"ipware.*",
"markdown2.*",
"mirage.*",
"ordered_model.*",
"phonenumbers.*",
"polymorphic.*",
"pyroscope.*",
"ratelimit.*",
"regex.*",
"recurring_ical_events.*",
"rest_polymorphic.*",
"slackclient.*",
"slackviewer.*",
"social_core.*",
"social_django.*",
"twilio.*",
"uwsgidecorators.*",
"whitenoise.*",
"uwsgi.*",
]
ignore_missing_imports = true
[tool.django-stubs]
django_settings_module = "settings.dev"