This is new in 5.0.2. There was no issue in 4.3.21.
lint run-test: commands[1] | python setup.py isort
running isort
Traceback (most recent call last):
File "setup.py", line 86, in <module>
"django-debug-toolbar",
File "/var/MM/3/fix_300/hyperkitty/.tox/lint/lib/python3.7/site-packages/setuptools/__init__.py", line 144, in setup
return distutils.core.setup(**attrs)
File "/usr/local/lib/python3.7/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/local/lib/python3.7/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/usr/local/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/var/MM/3/fix_300/hyperkitty/.eggs/isort-5.0.2-py3.7.egg/isort/setuptools_commands.py", line 58, in run
if not api.check_file(python_file, **arguments):
File "/var/MM/3/fix_300/hyperkitty/.eggs/isort-5.0.2-py3.7.egg/isort/api.py", line 230, in check_file
**config_kwargs,
File "/var/MM/3/fix_300/hyperkitty/.eggs/isort-5.0.2-py3.7.egg/isort/api.py", line 166, in check_stream
config = _config(path=file_path, config=config, **config_kwargs)
File "/var/MM/3/fix_300/hyperkitty/.eggs/isort-5.0.2-py3.7.egg/isort/api.py", line 329, in _config
config = Config(**config_kwargs)
File "/var/MM/3/fix_300/hyperkitty/.eggs/isort-5.0.2-py3.7.egg/isort/settings.py", line 309, in __init__
super().__init__(sources=tuple(sources), **combined_config) # type: ignore
TypeError: __init__() got an unexpected keyword argument 'check'
This is new in 5.0.2. There was no issue in 4.3.21.
Originally I was seeing TypeError: init() got an unexpected keyword argument 'use_paranthesis'. This was due to the tox.ini file (in 3 different projects) containing
use_parentheses=Truein theisortsection. I have fixed those and I am now seeing TypeError: init() got an unexpected keyword argument 'check' as in: