Closed artel1992 closed 3 months ago
pyproject.toml
[tool.darker]
src = [
"./monge_project"
]
isort = true
target-version = "py310"
[tool.black]
force_exclude = '''
/(
migrations
)/
'''
[tool.isort]
profile = "black"
known_third_party = ["pytest"]
[tool.pylint.'MAIN']
[tool.pylint.'BASIC']
[tool.pylint.'CLASSES']
[tool.pylint.'DESIGN']
[tool.pylint.'EXCEPTIONS']
[tool.pylint.'FORMAT']
[tool.pylint.'IMPORTS']
[tool.pylint.'LOGGING']
[tool.pylint.'MESSAGES CONTROL']
disable = [
"raw-checker-failed",
"bad-inline-option",
"locally-disabled",
"file-ignored",
"suppressed-message",
"useless-suppression",
"deprecated-pragma",
"use-symbolic-message-instead",
"use-implicit-booleaness-not-comparison-to-string",
"use-implicit-booleaness-not-comparison-to-zero",
"missing-function-docstring",
"missing-module-docstring",
"missing-class-docstring"
]
[tool.mypy]
python_version = "3.10"
check_untyped_defs = true
mypy_path = "./monge_project"
plugins = [
"mypy_django_plugin.main",
"mypy_drf_plugin.main"
]
warn_unused_ignores = true
[[tool.mypy.overrides]]
module = "decouple"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "simple_history.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "dadata"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "rest_framework_recursive.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "sqlparse"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "user_agents"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "ipware"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "haystack.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "django_celery_beat.*"
ignore_missing_imports = true
[tool.django-stubs]
django_settings_module = "backend_settings.settings"
@artel1992 thanks for reporting and closing – I'm curious whether you found out that the problem is elsewhere than in Darker, or did you close the issue for some other reason?
I get an error when I run mypy through Darker.
command:
stdout:
To Reproduce I'm not sure if this will be enough, but try installing all the specified dependencies and running the command through Pipenv
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add copy/paste the output or attach a screenshots to help explain your problem.
Environment
mypy==1.11.1
,pipenv==2023.7.23
,django==4.0.2
,django-split-settings==1.2.0
,python-decouple==3.8
I use Pipenv to run commands.
lint:mypy - works okay
Additional context Unfortunately, I cannot provide the files without breaching confidentiality