However, the CI fails with these warnings and error:
Code: Select all
Problem importing module async.py: No module named '_pysmile'
Problem importing module bad_chained_comparison.py: No module named '_pysmile'
Problem importing module base: No module named '_pysmile'
Problem importing module base_checker.py: No module named '_pysmile'
Problem importing module classes: No module named '_pysmile'
Problem importing module dataclass_checker.py: No module named '_pysmile'
Problem importing module deprecated.py: No module named '_pysmile'
Problem importing module design_analysis.py: No module named '_pysmile'
Problem importing module dunder_methods.py: No module named '_pysmile'
Problem importing module ellipsis_checker.py: No module named '_pysmile'
Problem importing module exceptions.py: No module named '_pysmile'
Problem importing module format.py: No module named '_pysmile'
Problem importing module imports.py: No module named '_pysmile'
Problem importing module lambda_expressions.py: No module named '_pysmile'
Problem importing module logging.py: No module named '_pysmile'
Problem importing module method_args.py: No module named '_pysmile'
Problem importing module misc.py: No module named '_pysmile'
Problem importing module modified_iterating_checker.py: No module named '_pysmile'
Problem importing module nested_min_max.py: No module named '_pysmile'
Problem importing module newstyle.py: No module named '_pysmile'
Problem importing module non_ascii_names.py: No module named '_pysmile'
Problem importing module raw_metrics.py: No module named '_pysmile'
Problem importing module refactoring: No module named '_pysmile'
Problem importing module similar.py: No module named '_pysmile'
Problem importing module spelling.py: No module named '_pysmile'
Problem importing module stdlib.py: No module named '_pysmile'
Problem importing module strings.py: No module named '_pysmile'
Problem importing module threading_checker.py: No module named '_pysmile'
Problem importing module typecheck.py: No module named '_pysmile'
Problem importing module unicode.py: No module named '_pysmile'
Problem importing module unsupported_version.py: No module named '_pysmile'
Problem importing module utils.py: No module named '_pysmile'
Problem importing module variables.py: No module named '_pysmile'
Problem importing module base_reporter.py: No module named '_pysmile'
Problem importing module collecting_reporter.py: No module named '_pysmile'
Problem importing module json_reporter.py: No module named '_pysmile'
Problem importing module multi_reporter.py: No module named '_pysmile'
Problem importing module reports_handler_mix_in.py: No module named '_pysmile'
Problem importing module text.py: No module named '_pysmile'
Problem importing module ureports: No module named '_pysmile'
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "d:\Repos\00-Phd\bayesian-tsc\.conda\Scripts\pylint.exe\__main__.py", line 8, in <module>
File "d:\Repos\00-Phd\bayesian-tsc\.conda\Lib\site-packages\pylint\__init__.py", line 34, in run_pylint
PylintRun(argv or sys.argv[1:])
File "d:\Repos\00-Phd\bayesian-tsc\.conda\Lib\site-packages\pylint\lint\run.py", line 162, in __init__
args = _config_initialization(
^^^^^^^^^^^^^^^^^^^^^^^
File "d:\Repos\00-Phd\bayesian-tsc\.conda\Lib\site-packages\pylint\config\config_initialization.py", line 114, in _config_initialization
for exc_name in linter.config.overgeneral_exceptions:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'Namespace' object has no attribute 'overgeneral_exceptions'
I've tried ignoring import warnings but that didn't work. Currently, we just set up a different virtual environment that doesn't include PySmile to make the code linter work.
This workaround is acceptable. So it would just be a bonus if PySmile would work with Pylint too.