Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dotted key mypy.plugins attempted to extend non-table type (array) #2448

Open
skhaz opened this issue Nov 22, 2024 · 0 comments
Open

dotted key mypy.plugins attempted to extend non-table type (array) #2448

skhaz opened this issue Nov 22, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@skhaz
Copy link

skhaz commented Nov 22, 2024

I have this pyproject.toml

[tool.pyright]
venvPath = "."
venv = ".venv"

[tool.ruff]
line-length = 120
target-version = "py312"

[tool.ruff.lint]
select = ["F", "I"]

[tool.ruff.lint.isort]
force-single-line = true

[mypy]
plugins = ["mypy_django_plugin.main"]

[mypy.plugins.django-stubs]
django_settings_module = "gatekeeper.settings"

Which works fine.

When I run

ruff format . && ruff check --fix .

I get the following error

ruff failed
  Cause: Failed to parse /opt/workspace/company/project/pyproject.toml
  Cause: TOML parse error at line 18, column 1
   |
18 | [mypy.plugins.django-stubs]
   | ^
invalid table header
dotted key `mypy.plugins` attempted to extend non-table type (array)
@skhaz skhaz added the bug Something isn't working label Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

1 participant