ruff
4997c681 - [`pycodestyle`] Allow `os.environ` modifications between imports (`E402`) (#10066)

Commit
1 year ago
[`pycodestyle`] Allow `os.environ` modifications between imports (`E402`) (#10066) ## Summary Allows, e.g.: ```python import os os.environ["WORLD_SIZE"] = "1" os.putenv("CUDA_VISIBLE_DEVICES", "4") import torch ``` For now, this is only allowed in preview. Closes https://github.com/astral-sh/ruff/issues/10059
Author
Parents
Loading