ruff/crates/ruff_python_semantic
Charlie Marsh 4997c681f1
[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
2024-02-20 13:24:27 -05:00
..
src [pycodestyle] Allow os.environ modifications between imports (E402) (#10066) 2024-02-20 13:24:27 -05:00
Cargo.toml Run doctests as part of CI pipeline (#9939) 2024-02-12 10:18:58 +01:00