ruff/crates/ruff_linter/src
Dylan b8dc780bdc
[refurb] Further special cases added to verbose-decimal-constructor (FURB157) (#14216)
This PR accounts for further subtleties in `Decimal` parsing:

- Strings which are empty modulo underscores and surrounding whitespace
are skipped
- `Decimal("-0")` is skipped
- `Decimal("{integer literal that is longer than 640 digits}")` are
skipped (see linked issue for explanation)

NB: The snapshot did not need to be updated since the new test cases are
"Ok" instances and added below the diff.

Closes #14204
2024-11-08 21:08:22 -05:00
..
checkers Fix miscellaneous issues in await-outside-async detection (#14218) 2024-11-08 21:07:13 -05:00
comments Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
cst Wrap expressions in parentheses when negating (#10346) 2024-03-11 18:20:55 -04:00
docstrings [pydocstyle] Improve heuristics for detecting Google-style docstrings (#13142) 2024-08-29 16:33:18 +01:00
fix Extract LineIndex independent methods from Locator (#13938) 2024-10-28 07:53:41 +00:00
importer Extract LineIndex independent methods from Locator (#13938) 2024-10-28 07:53:41 +00:00
message Add links to missing related options within rule documentations (#13971) 2024-11-03 14:15:57 -05:00
registry Upgrade to Rust 1.79 (#11875) 2024-06-17 07:15:10 +01:00
rules [refurb] Further special cases added to verbose-decimal-constructor (FURB157) (#14216) 2024-11-08 21:08:22 -05:00
settings Bump MSRV to Rust 1.80 (#13826) 2024-10-20 10:55:36 +02:00
snapshots Avoid parsing joint rule codes as distinct codes in # noqa (#12809) 2024-11-02 20:24:59 +00:00
codes.rs [refurb] Implement subclass-builtin (FURB189) (#14105) 2024-11-07 17:26:19 +05:30
directives.rs Extract LineIndex independent methods from Locator (#13938) 2024-10-28 07:53:41 +00:00
doc_lines.rs Extract LineIndex independent methods from Locator (#13938) 2024-10-28 07:53:41 +00:00
fs.rs Struct not tuple for compiled per-file ignores (#10864) 2024-04-11 13:47:57 -06:00
lib.rs Extract LineIndex independent methods from Locator (#13938) 2024-10-28 07:53:41 +00:00
line_width.rs Upgrade to Rust 1.78 (#11260) 2024-05-03 12:46:21 +00:00
linter.rs Extract LineIndex independent methods from Locator (#13938) 2024-10-28 07:53:41 +00:00
locator.rs Extract LineIndex independent methods from Locator (#13938) 2024-10-28 07:53:41 +00:00
logging.rs Bump MSRV to Rust 1.80 (#13826) 2024-10-20 10:55:36 +02:00
noqa.rs Avoid parsing joint rule codes as distinct codes in # noqa (#12809) 2024-11-02 20:24:59 +00:00
packaging.rs Nested namespace packages support (#10541) 2024-03-24 22:53:32 -04:00
pyproject_toml.rs Update pyproject-toml to 0.8 (#8351) 2023-10-30 10:05:37 +00:00
registry.rs [flake8-builtins] Implement import, lambda, and module shadowing (#12546) 2024-07-29 01:42:42 +00:00
renamer.rs Remove BindingKind::ComprehensionVar (#12347) 2024-07-16 11:18:04 -04:00
rule_redirects.rs Bump MSRV to Rust 1.80 (#13826) 2024-10-20 10:55:36 +02:00
rule_selector.rs Added ignoring deprecated rules for --select=ALL (#10497) 2024-06-27 13:44:11 +02:00
source_kind.rs Simplify iteration idioms (#13834) 2024-10-20 22:25:27 +01:00
test.rs Extract LineIndex independent methods from Locator (#13938) 2024-10-28 07:53:41 +00:00
text_helpers.rs Handle non-printable characters in diff view (#11687) 2024-06-08 06:22:03 +00:00
upstream_categories.rs Fix pylint upstream categories not showing in docs (#10441) 2024-03-18 01:27:39 +00:00