ruff/crates/ruff_linter/resources/test/fixtures
Ed Cuss f2cc2f604f
[flake8-pyi] Avoid syntax error from conflict with PIE790 (PYI021) (#20010)
<!--
Thank you for contributing to Ruff/ty! To help us out with reviewing,
please consider the following:

- Does this pull request include a summary of the change? (See below.)
- Does this pull request include a descriptive title? (Please prefix
with `[ty]` for ty pull
  requests.)
- Does this pull request include references to any relevant issues?
-->

## Summary

<!-- What's the purpose of the change? What does it do, and why? -->
First contribution so please let me know if I've made a mistake
anywhere. This was aimed to fix #19982, it adds the isolation level to
PYI021 to in the same style as the PIE790 rule.

fixes: #19982

## Test Plan

<!-- How was it tested? -->
I added a case to the PYI021.pyi file where the two rules are present as
there wasn't a case with them both interacting, using the minimal
reproducible example that @ntBre created on the issue (I think I got the
`# ERROR` markings wrong, so please let me know how to fix that if I
did).

---------

Co-authored-by: Brent Westbrook <brentrwestbrook@gmail.com>
2025-09-24 21:26:59 +00:00
..
airflow [airflow] Move airflow.operators.postgres_operator.Mapping from AIR302 to AIR301 (#20172) 2025-09-03 10:18:17 -04:00
control-flow-graph
eradicate Don't flag pyrefly pragmas as unused code (ERA001) (#19731) 2025-08-04 10:15:37 +02:00
fastapi [fastapi] Fix false positive for paths with spaces around parameters (FAST003) (#20077) 2025-08-29 13:40:25 +00:00
filesystem
flake8_2020
flake8_annotations
flake8_async [flake8-async] Implement blocking-path-method (ASYNC240) (#20264) 2025-09-23 08:30:47 -04:00
flake8_bandit [flake8-bandit] Fix truthiness: dict-only ** displays not truthy for shell (S602, S604, S609) (#20177) 2025-09-10 17:06:33 -04:00
flake8_blind_except [flake8-blind-except] Fix BLE001 false-positive on raise ... from None (#19755) 2025-08-13 13:01:47 -04:00
flake8_boolean_trap
flake8_bugbear [ruff] Fix B004 to skip invalid hasattr/getattr calls (#20486) 2025-09-19 13:44:42 -05:00
flake8_builtins [flake8-bultins] Detect class-scope builtin shadowing in decorators, default args, and attribute initializers (A003) (#20178) 2025-09-22 18:12:45 -04:00
flake8_commas Track t-strings and f-strings for token-based rules and suppression comments (#20357) 2025-09-12 13:00:12 -05:00
flake8_comprehensions [flake8-comprehensions] Preserve trailing commas for single-element lists (C409) (#19571) 2025-09-19 09:27:14 -04:00
flake8_datetimez
flake8_debugger [flake8-debugger] Also flag sys.breakpointhook and sys.__breakpointhook__ (T100) (#16191) 2025-02-16 14:50:16 -05:00
flake8_django [flake8_django] Fix DJ008 false positive for abstract models with type-annotated abstract field (#19221) 2025-07-11 16:50:59 +00:00
flake8_errmsg [flake8-errmsg] Exclude typing.cast from EM101 (#19656) 2025-08-01 13:37:44 -04:00
flake8_executable [flake8-executable] Allow uvx in shebang line (EXE003) (#18967) 2025-06-30 09:38:18 -04:00
flake8_fixme
flake8_future_annotations
flake8_gettext Add t-string fixtures for rules that do not need to be modified (#19146) 2025-07-14 09:46:31 -05:00
flake8_implicit_str_concat Track t-strings and f-strings for token-based rules and suppression comments (#20357) 2025-09-12 13:00:12 -05:00
flake8_import_conventions [flake8-import-conventions] Add import numpy.typing as npt to default flake8-import-conventions.aliases (#17133) 2025-04-02 09:25:46 +02:00
flake8_logging [flake8-logging] Avoid false positive for exc_info=True outside logger.exception (LOG014) (#18737) 2025-06-20 14:43:08 -04:00
flake8_logging_format [flake8-logging-format] Add auto-fix for f-string logging calls (G004) (#19303) 2025-08-26 10:51:24 -04:00
flake8_no_pep420
flake8_pie Fix F701 to F707 errors in tests (#19125) 2025-07-04 13:43:18 -05:00
flake8_print
flake8_pyi [flake8-pyi] Avoid syntax error from conflict with PIE790 (PYI021) (#20010) 2025-09-24 21:26:59 +00:00
flake8_pytest_style Less confidently mark f-strings as empty when inferring truthiness (#20152) 2025-08-29 22:12:54 +00:00
flake8_quotes Implement template strings (#17851) 2025-05-30 15:00:56 -05:00
flake8_raise [flake8-raise] Make fix unsafe if it deletes comments (RSE102) (#18788) 2025-06-21 19:09:40 +02:00
flake8_return [flake8-return] Fix false-positive for variables used inside nested functions in RET504 (#18433) 2025-07-10 16:10:22 -04:00
flake8_self [flake8-self] Ignore attribute accesses on instance-like variables (SLF001) (#16149) 2025-02-23 10:00:49 +00:00
flake8_simplify [flake8-simplify] Fix incorrect fix for positive maxsplit without separator (SIM905) (#20056) 2025-09-18 20:56:34 +00:00
flake8_slots
flake8_tidy_imports
flake8_todos
flake8_type_checking [flake8-type-checking, pyupgrade, ruff] Add from __future__ import annotations when it would allow new fixes (TC001, TC002, TC003, UP037, RUF013) (#19100) 2025-07-16 08:50:52 -04:00
flake8_unused_arguments Add t-string fixtures for rules that do not need to be modified (#19146) 2025-07-14 09:46:31 -05:00
flake8_use_pathlib [flake8-use-pathlib] Fix PTH101, PTH104, PTH105, PTH121 fixes (#20143) 2025-09-18 14:17:54 +00:00
flynt [flynt] Use triple quotes for joined raw strings with newlines (FLY002) (#20197) 2025-09-18 13:18:29 -04:00
isort [isort] Handle multiple continuation lines after module docstring (I002) (#19818) 2025-08-15 17:17:50 -04:00
mccabe
numpy
pandas_vet
pep8_naming [pep8-naming] Fix N802 false positives for CGIHTTPRequestHandler and SimpleHTTPRequestHandler (#19432) 2025-07-23 12:04:11 -04:00
perflint [perflint] Handle tuples in dictionary comprehensions (PERF403) (#19934) 2025-08-28 21:37:40 +00:00
pycodestyle [pycodestyle] Fix E301 to only trigger for functions immediately within a class (#19768) 2025-09-16 11:00:07 -04:00
pydoclint
pydocstyle [pydoclint] Fix SyntaxError from fixes with line continuations (D201, D202) (#19246) 2025-07-14 13:31:36 -04:00
pyflakes [pyflakes] Fix allowed-unused-imports matching for top-level modules (F401) (#20115) 2025-08-28 13:02:50 +00:00
pygrep_hooks [pygrep_hooks] Add AsyncMock methods to invalid-mock-access (PGH005) (#18547) 2025-06-24 17:27:21 -04:00
pylint [pylint] Add U+061C to PLE2502 (#20106) 2025-08-28 16:35:48 -04:00
pyupgrade [pyupgrade] Fix UP008 to not apply when __class__ is a local variable (UP008) (#20497) 2025-09-23 10:56:39 -04:00
refurb [refurb] Mark single-item-membership-test fix as always unsafe (FURB171) (#20279) 2025-09-18 15:24:15 +00:00
ruff [ruff] Add logging-eager-conversion (RUF065) (#19942) 2025-09-19 16:43:44 -04:00
syntax_errors [syntax-errors] Detect yield from inside async function (#20051) 2025-09-03 10:13:05 -04:00
tryceratops
__init__.py