Logo
Explore Help
Sign In
Cyclic0007/ruff
1
0
Fork 0
You've already forked ruff
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
4997c681f146a41b8ed7225fe8ffd5df4c6779b7
ruff/crates/ruff_python_semantic/src/analyze
History
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
..
class.rs
Respect __str__ definitions from super classes (#9338)
2023-12-31 22:25:08 +00:00
function_type.rs
Support local and dynamic class- and static-method decorators (#8592)
2023-11-10 02:04:25 +00:00
imports.rs
[pycodestyle] Allow os.environ modifications between imports (E402) (#10066)
2024-02-20 13:24:27 -05:00
logging.rs
[tryceratops] Add fix for error-instead-of-exception (TRY400) (#9520)
2024-01-16 03:00:04 +00:00
mod.rs
Respect mixed return and raise cases in return-type analysis (#9310)
2023-12-29 16:46:37 +00:00
terminal.rs
Handle raises with implicit alternate branches (#9377)
2024-01-02 22:59:12 -05:00
type_inference.rs
Remove source path from parser errors (#9322)
2023-12-30 20:33:05 +00:00
typing.rs
Respect tuple assignments in typing analyzer (#9969)
2024-02-13 05:02:52 +00:00
visibility.rs
[pylint] Implement too-many-public-methods rule (PLR0904) (#6179)
2023-09-14 00:52:26 +00:00
Powered by Gitea Version: 1.25.3 Page: 51ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API