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
flake8 should not raise an exception if $HOME points to an invalid directory
For example, when running as the nobody user in a Debian-based Docker image, and $HOME points to /nonexistent.
commands ran
# sudo -u nobody flake8Traceback (most recent call last): File "/usr/local/bin/flake8", line 8, in <module> sys.exit(main()) File "/usr/local/lib/python3.9/site-packages/flake8/main/cli.py", line 22, in main app.run(argv) File "/usr/local/lib/python3.9/site-packages/flake8/main/application.py", line 336, in run self._run(argv) File "/usr/local/lib/python3.9/site-packages/flake8/main/application.py", line 324, in _run self.initialize(argv) File "/usr/local/lib/python3.9/site-packages/flake8/main/application.py", line 296, in initialize cfg, cfg_dir = config.load_config( File "/usr/local/lib/python3.9/site-packages/flake8/options/config.py", line 73, in load_config config = _find_config_file(pwd) File "/usr/local/lib/python3.9/site-packages/flake8/options/config.py", line 26, in _find_config_file home_stat = _stat_key(home) if home != "~" else None File "/usr/local/lib/python3.9/site-packages/flake8/options/config.py", line 19, in _stat_key st = os.stat(s)FileNotFoundError: [Errno 2] No such file or directory: '/nonexistent'
The text was updated successfully, but these errors were encountered:
how did you install flake8?
$ pip install flake8
unmodified output of
flake8 --bug-report
describe the problem
what I expected to happen
flake8 should not raise an exception if $HOME points to an invalid directory
For example, when running as the
nobody
user in a Debian-based Docker image, and $HOME points to/nonexistent
.commands ran
The text was updated successfully, but these errors were encountered: