ruff/crates/ruff_linter
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
..
resources [`pycodestyle`] Allow `os.environ` modifications between imports (`E402`) (#10066) 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 Bump version to v0.2.2 (#10018) 2024-02-17 22:15:04 +00:00
__init__.py [`pylint`] (Re-)Implement `import-private-name` (`C2701`) (#9553) 2024-01-16 14:03:11 -05:00