Tadaboody / good_smell

A linting/refactoring library for python best practices and lesser-known tricks
BSD 3-Clause "New" or "Revised" License
30 stars 3 forks source link

`smells` package not included in dist #34

Closed Tadaboody closed 5 years ago

Tadaboody commented 5 years ago
[...]
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/lib/python3.7/site-packages/good_smell/__init__.py", line 3, in <module>
    from .smells import implemented_smells
ModuleNotFoundError: No module named 'good_smell.smells'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/sbin/flake8", line 10, in <module>
    sys.exit(main())
  File "/usr/lib/python3.7/site-packages/flake8/main/cli.py", line 16, in main
    app.run(argv)
  File "/usr/lib/python3.7/site-packages/flake8/main/application.py", line 412, in run
    self._run(argv)
  File "/usr/lib/python3.7/site-packages/flake8/main/application.py", line 399, in _run
    self.initialize(argv)
  File "/usr/lib/python3.7/site-packages/flake8/main/application.py", line 381, in initialize
    self.find_plugins()
  File "/usr/lib/python3.7/site-packages/flake8/main/application.py", line 197, in find_plugins
    self.check_plugins.load_plugins()
  File "/usr/lib/python3.7/site-packages/flake8/plugins/manager.py", line 434, in load_plugins
    plugins = list(self.manager.map(load_plugin))
  File "/usr/lib/python3.7/site-packages/flake8/plugins/manager.py", line 319, in map
    yield func(self.plugins[name], *args, **kwargs)
  File "/usr/lib/python3.7/site-packages/flake8/plugins/manager.py", line 432, in load_plugin
    return plugin.load_plugin()
  File "/usr/lib/python3.7/site-packages/flake8/plugins/manager.py", line 189, in load_plugin
    raise failed_to_load
flake8.exceptions.FailedToLoadPlugin: Flake8 failed to load plugin "SML" due to No module named 'good_smell.smells'.
➜ tree /usr/lib/python3.7/site-packages/good_smell
/usr/lib/python3.7/site-packages/good_smell
├── flake8_ext.py
├── __init__.py
├── lint_smell.py
├── main.py
├── __pycache__
│   ├── flake8_ext.cpython-37.pyc
│   ├── __init__.cpython-37.pyc
│   ├── lint_smell.cpython-37.pyc
│   ├── main.cpython-37.pyc
│   └── smell_warning.cpython-37.pyc
└── smell_warning.py

1 directory, 10 files