ruff/crates/ruff_linter/src
konsti 26f9b4a8e6
Don't suggest replacing builtin.open() with Path.open() if the latter doesn't support all options (#7637)
**Summary** Check that `closefd` and `opener` aren't being used with
`builtin.open()` before suggesting `Path.open()` because pathlib doesn't
support these arguments.

Closes #7620

**Test Plan** New cases in the fixture.
2023-09-26 09:07:35 +00:00
..
autofix Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
checkers Don't suggest replacing builtin.open() with Path.open() if the latter doesn't support all options (#7637) 2023-09-26 09:07:35 +00:00
comments Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
cst Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
docstrings Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
importer Skip BOM when inserting start-of-file imports (#7622) 2023-09-23 19:36:50 +00:00
lex Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
message Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
registry Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
rules Don't suggest replacing builtin.open() with Path.open() if the latter doesn't support all options (#7637) 2023-09-26 09:07:35 +00:00
settings Use u8 to represent version segments (#7578) 2023-09-21 14:24:51 -04:00
snapshots Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
codes.rs [refurb] Implement print-empty-string (FURB105) (#7617) 2023-09-24 04:10:36 +00:00
directives.rs Introduce LinterSettings 2023-09-20 17:02:34 +02:00
doc_lines.rs Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
fs.rs Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
lib.rs Enable tab completion for ruff rule (#7560) 2023-09-20 22:05:39 -04:00
line_width.rs Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
linter.rs Introduce LinterSettings 2023-09-20 17:02:34 +02:00
logging.rs Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
noqa.rs Use strict sorted and union for NoQA mapping insertion (#7531) 2023-09-20 11:07:19 +00:00
packaging.rs Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
pyproject_toml.rs Introduce LinterSettings 2023-09-20 17:02:34 +02:00
registry.rs Enable tab completion for ruff rule (#7560) 2023-09-20 22:05:39 -04:00
renamer.rs Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
rule_redirects.rs Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
rule_selector.rs Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
source_kind.rs Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
test.rs Introduce LinterSettings 2023-09-20 17:02:34 +02:00
upstream_categories.rs Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00