ruff/crates/ruff_linter/resources/test/fixtures/pyupgrade
InSync c8d505c8ea
[pyupgrade] Do not report when a UTF-8 comment is followed by a non-UTF-8 one (UP009) (#14728)
## Summary

Resolves #14704.

## Test Plan

`cargo nextest run` and `cargo insta test`.

---------

Co-authored-by: Micha Reiser <micha@reiser.io>
2024-12-11 10:30:41 +00:00
..
future_annotations.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
UP001.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
UP003.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
UP004.py Improve handling of builtin symbols in linter rules (#10919) 2024-04-16 11:37:31 +01:00
UP005.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
UP006_0.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
UP006_1.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
UP006_2.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
UP006_3.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
UP007.py Fix unnecessary parentheses in UP007 fix (#8610) 2023-11-10 19:15:09 -05:00
UP008.py Avoid recommending no-argument super in slots=True dataclasses (#12530) 2024-07-26 10:09:51 -04:00
UP009_0.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
UP009_1.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
UP009_2.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
UP009_3.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
UP009_4.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
UP009_5.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
UP009_6.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
UP009_7.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
UP009_8.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
UP009_9.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
UP009_10.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
UP009_code_utf8_utf8.py [pyupgrade] Do not report when a UTF-8 comment is followed by a non-UTF-8 one (UP009) (#14728) 2024-12-11 10:30:41 +00:00
UP009_hashbang_utf8_other.py [pyupgrade] Do not report when a UTF-8 comment is followed by a non-UTF-8 one (UP009) (#14728) 2024-12-11 10:30:41 +00:00
UP009_many_empty_lines.py [pyupgrade] Do not report when a UTF-8 comment is followed by a non-UTF-8 one (UP009) (#14728) 2024-12-11 10:30:41 +00:00
UP009_other_other.py [pyupgrade] Do not report when a UTF-8 comment is followed by a non-UTF-8 one (UP009) (#14728) 2024-12-11 10:30:41 +00:00
UP009_other_utf8.py [pyupgrade] Do not report when a UTF-8 comment is followed by a non-UTF-8 one (UP009) (#14728) 2024-12-11 10:30:41 +00:00
UP009_utf8_code_other.py [pyupgrade] Do not report when a UTF-8 comment is followed by a non-UTF-8 one (UP009) (#14728) 2024-12-11 10:30:41 +00:00
UP009_utf8_other.py [pyupgrade] Do not report when a UTF-8 comment is followed by a non-UTF-8 one (UP009) (#14728) 2024-12-11 10:30:41 +00:00
UP009_utf8_utf8.py [pyupgrade] Do not report when a UTF-8 comment is followed by a non-UTF-8 one (UP009) (#14728) 2024-12-11 10:30:41 +00:00
UP009_utf8_utf8_other.py [pyupgrade] Do not report when a UTF-8 comment is followed by a non-UTF-8 one (UP009) (#14728) 2024-12-11 10:30:41 +00:00
UP010.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
UP011.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
UP012.py Use Tokens from parsed type annotation or parsed source (#11740) 2024-06-05 07:50:33 +00:00
UP013.py [pyupgrade] Mark fixes for convert-typed-dict-functional-to-class and convert-named-tuple-functional-to-class as unsafe if they will remove comments (UP013, UP014) (#14842) 2024-12-08 18:51:37 +00:00
UP014.py [pyupgrade] Mark fixes for convert-typed-dict-functional-to-class and convert-named-tuple-functional-to-class as unsafe if they will remove comments (UP013, UP014) (#14842) 2024-12-08 18:51:37 +00:00
UP015.py Detect permutations in redundant open modes (#14255) 2024-11-10 22:48:30 -05:00
UP015_1.py Use Tokens from parsed type annotation or parsed source (#11740) 2024-06-05 07:50:33 +00:00
UP017.py Avoid failures due to non-deterministic binding ordering (#10478) 2024-03-19 18:01:33 +00:00
UP018.py [pyupgrade] Detect literals with unary operators (UP018) (#10060) 2024-02-20 18:21:06 +00:00
UP019.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
UP020.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
UP021.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
UP022.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
UP023.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
UP024_0.py Treat os.error as an OSError alias (#7582) 2023-09-21 21:18:14 +00:00
UP024_1.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
UP024_2.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
UP024_3.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
UP024_4.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
UP025.py Remove special pre-visit for module docstrings (#9261) 2023-12-23 10:03:12 -05:00
UP026.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
UP028_0.py Avoid UP028 false negatives with non-reference shadowed bindings of loop variables (#13504) 2024-09-25 10:03:09 -05:00
UP028_1.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
UP029.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
UP030_0.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
UP030_1.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
UP031_0.py [pyupgrade] Show violations without auto-fix for UP031 (#11229) 2024-08-14 11:59:40 +00:00
UP031_1.py [pyupgrade] Show violations without auto-fix for UP031 (#11229) 2024-08-14 11:59:40 +00:00
UP032_0.py Use Tokens from parsed type annotation or parsed source (#11740) 2024-06-05 07:50:33 +00:00
UP032_1.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
UP032_2.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
UP032_3.py Avoid converting f-strings within Django gettext calls (#7898) 2023-10-10 16:31:09 +00:00
UP033_0.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
UP033_1.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
UP034.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
UP035.py Update UP035 for Python 3.13 and the latest version of typing_extensions (#11693) 2024-06-02 22:59:48 +01:00
UP036_0.py Mark sys.version_info[0] < 3 and similar comparisons as outdated (#13175) 2024-08-30 19:38:46 -04:00
UP036_1.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
UP036_2.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
UP036_3.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
UP036_4.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
UP036_5.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
UP037_0.py Mark quotes as unnecessary for non-evaluated annotations (#11485) 2024-05-22 15:44:31 -04:00
UP037_1.py Mark quotes as unnecessary for non-evaluated annotations (#11485) 2024-05-22 15:44:31 -04:00
UP038.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
UP039.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
UP040.py [pyupgrade] Support TypeAliasType in UP040 (#11530) 2024-05-26 19:05:35 +00:00
UP040.pyi Update non-pep695-type-alias to require --unsafe-fixes outside of stub files (#7836) 2023-10-06 14:56:40 -05:00
UP041.py Add pyupgrade UP041 to replace TimeoutError aliases (#8476) 2023-11-03 17:24:47 +00:00
UP042.py [pyupgrade] Replace str, Enum with StrEnum (UP042) (#10713) 2024-04-06 01:56:28 +00:00
UP043.py Mark UP043 fix unsafe when the type annotation contains any comments (#14458) 2024-11-19 15:24:02 +01:00
UP044.py Avoid applying PEP 646 rewrites in invalid contexts (#14234) 2024-11-09 15:47:28 -05:00