jamesturk / jellyfish

🪼 a python library for doing approximate and phonetic matching of strings.
https://jamesturk.github.io/jellyfish/
MIT License
2.04k stars 157 forks source link

no-name-in-module pylint #192

Closed vitalie-cracan closed 1 year ago

vitalie-cracan commented 1 year ago

from jellyfish import jaro_winkler_similarity

generates this complaint from pylint:

E0611: No name 'jaro_winkler_similarity' in module 'jellyfish' (no-name-in-module)

jamesturk commented 1 year ago

Can you give any more details on environment/etc?

vitalie-cracan commented 1 year ago

❯ cat pyproject.toml

[tool.poetry]
name = "jelly"
version = "0.1.0"
description = ""
authors = ["me"]
readme = "README.md"

[tool.poetry.dependencies]
python = "^3.9"
jellyfish = "^1.0.0"

[tool.poetry.group.dev.dependencies]
pylint = "^2.17.4"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

❯ cat test.py

from jellyfish import jaro_winkler_similarity

print(jaro_winkler_similarity("test", "tost"))

❯ pylint test.py ***** Module test test.py:1:0: C0114: Missing module docstring (missing-module-docstring) test.py:1:0: E0611: No name 'jaro_winkler_similarity' in module 'jellyfish' (no-name-in-module)


Your code has been rated at 0.00/10 (previous run: 0.00/10, +0.00)

jamesturk commented 1 year ago

Ah so this only occurs via pylint, I'd consider checking with them, it's not a tool I use.