astral-sh
ruff
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
Performance History
Latest Results
[flake8-bandit] Fix false positive when using non-standard `CSafeLoader` path (S506). (#21830)
main
2 hours ago
[flake8-bandit] Fix false positive when using non-standard CSafeLoader path (S506). Using `CSafeLoader` from non-standard path i.e `yaml.cyaml.CSafeLoader` resulted in false reporting of `unsafe-yaml-load`. Example: ```py import yaml yaml.load("{}", Loader=yaml.cyaml.CSafeLoader) ``` resulted in: ```sh S506 Probable use of unsafe loader `CSafeLoader` with `yaml.load`. Allows instantiation of arbitrary objects. Consider `yaml.safe_load`. --> /Users/foo/ruff-input/main.py:5:24 | 3 | import yaml 4 | 5 | yaml.load("{}", Loader=yaml.cyaml.CSafeLoader) | ^^^^^^^^^^^^^^^^^^^^^^ ``` The PR fixes the bug by considering `yaml.cyaml.CSafeLoader` as a possible way to use `CSafeLoader`. Fixes #21673. Signed-off-by: Prakhar Pratyush <prakhar1144@gmail.com>
prakhar1144:fix-unsafe-yaml-load
2 hours ago
[ty] Narrow types after NoReturn calls in if branches When a branch calls a NoReturn function, use the negation of the condition to narrow types after the if statement. For example, after `if val is None: sys.exit()`, `val` is now correctly narrowed to `int` instead of `int | None`. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
alex:fix-noreturn-narrowing
9 hours ago
Address review feedback
magic-akari:formatter/remove-regex-dependency
13 hours ago
Avoid double-analyzing tuple in Final subscript
charlie/sli
14 hours ago
fix: typos issue
magic-akari:formatter/remove-regex-dependency
14 hours ago
Remove `regex` dependency from `ruff_python_formatter`
magic-akari:formatter/remove-regex-dependency
14 hours ago
Add minimal-size build profile (#21826) This PR adds the same `minimal-size` profile as `uv` repo workspace has ```toml # Profile to build a minimally sized binary for uv-build [profile.minimal-size] inherits = "release" opt-level = "z" # This will still show a panic message, we only skip the unwind panic = "abort" codegen-units = 1 ``` but removes its `panic = "abort"` setting - As discussed in #21825 Compared to the ones pre-built via `uv tool install`, this builds 35% smaller ruff and 24% smaller ty binaries (as measured [here](https://github.com/lmmx/just-pre-commit/blob/master/refresh_binaries.sh))
main
18 hours ago
Active Branches
[ty] Narrow types after NoReturn calls in if branches
last run
9 hours ago
#21819
CodSpeed Performance Gauge
-10%
Remove `regex` dependency from `ruff_python_formatter`
last run
13 hours ago
#21827
CodSpeed Performance Gauge
0%
[ty] Avoid double-analyzing tuple in `Final` subscript
last run
14 hours ago
#21828
CodSpeed Performance Gauge
0%
© 2025 CodSpeed Technology
Home
Terms
Privacy
Docs