2022-06-03 08:09:47 -06:00
|
|
|
[tool.isort]
|
|
|
|
|
profile = "black"
|
|
|
|
|
line_length=120
|
2023-07-26 14:45:44 +01:00
|
|
|
float_to_top=true
|
|
|
|
|
py_version=311
|
2022-06-03 08:09:47 -06:00
|
|
|
extend_skip_glob = "**/migrations/**"
|
|
|
|
|
|
|
|
|
|
[tool.black]
|
|
|
|
|
line-length = 120
|
2023-12-01 09:56:26 -05:00
|
|
|
target-version = ["py311"]
|
2022-06-03 08:09:47 -06:00
|
|
|
force-exclude = "migrations"
|
2023-06-12 18:50:33 +02:00
|
|
|
|
|
|
|
|
[tool.mypy]
|
2023-06-27 12:23:08 +02:00
|
|
|
mypy_path = "$MYPY_CONFIG_FILE_DIR/type_stubs"
|
2023-06-12 18:50:33 +02:00
|
|
|
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
|
|
|
|
|
]
|
2023-06-29 16:01:52 +02:00
|
|
|
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",
|
|
|
|
|
]
|
2023-06-12 18:50:33 +02:00
|
|
|
|
|
|
|
|
# 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.*",
|
2023-07-14 12:00:02 +02:00
|
|
|
"celery.utils.debug",
|
2023-06-12 18:50:33 +02:00
|
|
|
"debug_toolbar.*",
|
|
|
|
|
"django_deprecate_fields.*",
|
2023-08-03 11:43:03 +02:00
|
|
|
"django_migration_linter",
|
2023-06-12 18:50:33 +02:00
|
|
|
"django_sns_view.*",
|
|
|
|
|
"factory.*",
|
|
|
|
|
"fcm_django.*",
|
|
|
|
|
"firebase_admin.*",
|
2024-08-09 10:51:20 -04:00
|
|
|
"google.auth.exceptions.*",
|
2024-04-02 14:59:03 -04:00
|
|
|
"googleapiclient.discovery.*",
|
2024-05-09 13:16:46 -03:00
|
|
|
"googleapiclient.errors.*",
|
2024-04-02 14:59:03 -04:00
|
|
|
"google.oauth2.credentials.*",
|
2024-02-02 16:08:04 -05:00
|
|
|
"httpretty.*",
|
2023-06-12 18:50:33 +02:00
|
|
|
"humanize.*",
|
2023-06-27 12:23:08 +02:00
|
|
|
"ipware.*",
|
2023-06-12 18:50:33 +02:00
|
|
|
"markdown2.*",
|
|
|
|
|
"mirage.*",
|
|
|
|
|
"ordered_model.*",
|
|
|
|
|
"phonenumbers.*",
|
|
|
|
|
"polymorphic.*",
|
|
|
|
|
"pyroscope.*",
|
|
|
|
|
"ratelimit.*",
|
2024-09-04 14:47:09 -03:00
|
|
|
"regex.*",
|
2023-06-12 18:50:33 +02:00
|
|
|
"recurring_ical_events.*",
|
|
|
|
|
"rest_polymorphic.*",
|
|
|
|
|
"slackclient.*",
|
2023-06-27 12:23:08 +02:00
|
|
|
"slackviewer.*",
|
2023-06-12 18:50:33 +02:00
|
|
|
"social_core.*",
|
|
|
|
|
"social_django.*",
|
|
|
|
|
"twilio.*",
|
|
|
|
|
"uwsgidecorators.*",
|
|
|
|
|
"whitenoise.*",
|
2023-07-14 12:00:02 +02:00
|
|
|
"uwsgi.*",
|
2023-06-12 18:50:33 +02:00
|
|
|
]
|
|
|
|
|
ignore_missing_imports = true
|
|
|
|
|
|
|
|
|
|
[tool.django-stubs]
|
|
|
|
|
django_settings_module = "settings.dev"
|