sqlalchemy-stubs are installed in conda environment and entered in mypy.ini, but in pre-commit, one gets error: Error importing plugin "sqlmypy": No module named 'sqlmypy'

Open
#243 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
28/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
python, sqlalchemy
Domain
tooling

Research direction

Start by reproducing the reported pre-commit mypy run with Python 3.8, mypy 0.961, and sqlalchemy-stubs 0.4. Inspect the mypy.ini entry for the sqlmypy plugin and the pre-commit configuration; done means the plugin imports successfully and mypy analysis runs without this error.

Written by the indexing model from the issue text.

Description

I have installed sqlaclhemy-stubs in my local environment (I have tried both versions from pypi and the development version from the github), but when I tried to run mypy analysis via pre-commit, I'm getting the following error message from the mypy:

mypy.ini:6:1: error: Error importing plugin "sqlmypy": No module named 'sqlmypy'

python version is 3.8
mypy version is 0.961
sqlalchemy-stubs version is 0.4

Dominant language
Python
Stars
584
Forks
96
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from dropbox/sqlalchemy-stubs

All issues in dropbox/sqlalchemy-stubs

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.