You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The isort configuration file doesn't support inline comments. For example,
$ head .isort.cfg hello.py
==> .isort.cfg <==
[settings]
force_single_line=1 # every import will appear on its own
==> hello.py <==
import sys
sys.stdout.write("hello\n")
$ isort .
/Users/eafqe/virtual-environments/py-3-11/lib/python3.11/site-packages/isort/settings.py:783: UserWarning: Failed to pull configuration information from /Users/eafqe/temp/Gen-AI-Product-Geo-Extractor-tom/src/isort/bug/.isort.cfg
warn(f"Failed to pull configuration information from {potential_config_file}")
Fixing /Users/eafqe/temp/Gen-AI-Product-Geo-Extractor-tom/src/isort/bug/hello.py
$ perl -i.bak -pe 's/#/\n#/;' .isort.cfg
$ isort .
$ cat .isort.cfg
[settings]
force_single_line=1
# every import will appear on its own
It would be good if comments can be stripped, because inline comments make it simpler to explain settings rather than alternating comments and settings.
The text was updated successfully, but these errors were encountered:
The isort configuration file doesn't support inline comments. For example,
It would be good if comments can be stripped, because inline comments make it simpler to explain settings rather than alternating comments and settings.
The text was updated successfully, but these errors were encountered: