ruff/crates
TomerBin ec72e675d9
Red Knot - Infer the return value of bool() (#13538)
## Summary
Following #13449, this PR adds custom handling for the bool constructor,
so when the input type has statically known truthiness value, it will be
used as the return value of the bool function.
For example, in the following snippet x will now be resolved to
`Literal[True]` instead of `bool`.
```python
x = bool(1)
```

## Test Plan
Some cargo tests were added.
2024-09-27 12:11:55 -07:00
..
red_knot Use an empty vendored file system in Ruff (#13436) 2024-09-21 16:31:42 +00:00
red_knot_python_semantic Red Knot - Infer the return value of bool() (#13538) 2024-09-27 12:11:55 -07:00
red_knot_server
red_knot_wasm Use an empty vendored file system in Ruff (#13436) 2024-09-21 16:31:42 +00:00
red_knot_workspace Use an empty vendored file system in Ruff (#13436) 2024-09-21 16:31:42 +00:00
ruff Remove jemalloc crate when building on AIX (#13529) 2024-09-26 13:20:54 -04:00
ruff_benchmark [red-knot] use declared types in inference/checking (#13335) 2024-09-17 08:11:06 -07:00
ruff_cache
ruff_db Use an empty vendored file system in Ruff (#13436) 2024-09-21 16:31:42 +00:00
ruff_dev Fix parentheses around return type annotations (#13381) 2024-09-20 09:23:53 +02:00
ruff_diagnostics
ruff_formatter
ruff_graph Don't skip over imports and other nodes containing nested statements in import collector (#13521) 2024-09-26 11:57:05 +00:00
ruff_index
ruff_linter Do not offer an invalid fix for PLR1716 when the comparisons contain parenthesis (#13527) 2024-09-26 19:01:06 +00:00
ruff_macros
ruff_notebook
ruff_python_ast [internal] ComparableExpr (f)strings and bytes made invariant under concatenation (#13301) 2024-09-25 16:58:57 +02:00
ruff_python_ast_integration_tests [internal] ComparableExpr (f)strings and bytes made invariant under concatenation (#13301) 2024-09-25 16:58:57 +02:00
ruff_python_codegen
ruff_python_formatter refactor: Simplify quote selection logic (#13536) 2024-09-27 14:40:28 +02:00
ruff_python_index
ruff_python_literal
ruff_python_parser Expose internal types as public access (#13509) 2024-09-26 17:34:30 +02:00
ruff_python_resolver
ruff_python_semantic Detect tuples bound to variadic positional arguments i.e. *args (#13512) 2024-09-25 10:03:25 -05:00
ruff_python_stdlib Remove allocation from ruff_python_stdlib::builtins::python_builtins (#13317) 2024-09-10 16:34:24 -04:00
ruff_python_trivia Fix placement of inline parameter comments (#13379) 2024-09-18 08:26:06 +02:00
ruff_python_trivia_integration_tests
ruff_server Add support for extensionless Python files for server (#13326) 2024-09-12 00:35:26 +05:30
ruff_source_file Fix off-by one error in the LineIndex::offset calculation (#13407) 2024-09-19 11:58:45 +00:00
ruff_text_size
ruff_vendored Use an empty vendored file system in Ruff (#13436) 2024-09-21 16:31:42 +00:00
ruff_wasm Bump version to 0.6.8 (#13522) 2024-09-26 14:09:03 +02:00
ruff_workspace Fix formatting for analyze direction values (#13476) 2024-09-23 09:18:28 +02:00