ruff/crates/ruff_linter/resources/test/fixtures
Charlie Marsh b6847b371e
Skip namespace package enforcement for PEP 723 scripts (#13974)
## Summary

Vendors the PEP 723 parser from
[uv](debe67ffdb/crates/uv-scripts/src/lib.rs (L283)).

Closes https://github.com/astral-sh/ruff/issues/13912.
2024-10-29 02:11:31 +00:00
..
airflow Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
control-flow-graph Add erroneous for-loop test case for CFG (#8957) 2023-12-01 23:11:42 +00:00
eradicate `ERA001`: Ignore script-comments with multiple end-tags (#13283) 2024-09-09 19:47:39 +01:00
fastapi Respect FastAPI aliases in route definitions (#13394) 2024-09-18 12:06:49 -04:00
filesystem Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
flake8_2020 Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
flake8_annotations Handle raises with implicit alternate branches (#9377) 2024-01-02 22:59:12 -05:00
flake8_async [`flake8-async`] allow async generators (`ASYNC100`) (#13639) 2024-10-07 07:25:54 -05:00
flake8_bandit [`flake8-bandit`] Detect patterns from multi line SQL statements (`S608`) (#13574) 2024-10-17 05:42:03 +00:00
flake8_blind_except Respect logged and re-raised expressions in nested statements (#11301) 2024-05-05 21:52:09 -04:00
flake8_boolean_trap [`flake8-boolean-trap`] Add setting for user defined allowed boolean trap (#10531) 2024-03-30 00:26:12 +00:00
flake8_bugbear Avoid short circuiting `B017` for multiple context managers (#13609) 2024-10-03 15:35:05 +05:30
flake8_builtins Use dynamic builtins list based on Python version (#13172) 2024-09-01 17:03:44 +00:00
flake8_commas Enable token-based rules on source with syntax errors (#11950) 2024-07-02 08:57:46 +00:00
flake8_comprehensions [`flake8-comprehensions`] Do not lint `async for` comprehensions in `unnecessary-comprehension-in-call (`C419`)` (#12895) 2024-08-15 01:00:10 +00:00
flake8_datetimez Allow f-strings with `%z` for `DTZ007` (#10651) 2024-03-29 09:57:13 +05:30
flake8_debugger Check for use of `debugpy` and `ptvsd` debug modules (#10177) (#10194) 2024-03-01 23:02:44 -05:00
flake8_django Respect `__str__` definitions from super classes (#9338) 2023-12-31 22:25:08 +00:00
flake8_errmsg Allow `EM` fixes even if `msg` variable is defined (#9059) 2023-12-08 15:16:15 -06:00
flake8_executable Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
flake8_fixme Fix TODO directive out of bounds acccess (#13756) 2024-10-15 10:49:53 +02:00
flake8_future_annotations Avoid flagging `__future__` annotations as required for non-evaluated type annotations (#11414) 2024-05-21 18:57:13 +00:00
flake8_gettext Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
flake8_implicit_str_concat [`flake8-implicit-str-concat`] Normalize octals before merging concatenated strings in `single-line-implicit-string-concatenation` (`ISC001`) (#13118) 2024-08-27 18:53:27 +01:00
flake8_import_conventions Accept non-aliased (but correct) import in unconventional-import-alias (#10729) 2024-04-01 23:47:20 -04:00
flake8_logging Avoid failures due to non-deterministic binding ordering (#10478) 2024-03-19 18:01:33 +00:00
flake8_logging_format Include inline instantiations when detecting loggers (#11154) 2024-04-25 21:00:12 -04:00
flake8_no_pep420 Skip namespace package enforcement for PEP 723 scripts (#13974) 2024-10-29 02:11:31 +00:00
flake8_pie [`flake8-pie`] Preserve parentheses in `unnecessary-dict-kwargs` (#11372) 2024-05-11 18:04:54 -04:00
flake8_print Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
flake8_pyi [`flake8-pyi`] - fix dropped exprs in `PYI030` autofix (#13727) 2024-10-13 11:33:03 +01:00
flake8_pytest_style [`flake8-pytest-style`] Fix single-tuple conversion in `pytest-parametrize-values-wrong-type` (#10862) 2024-04-10 14:20:09 -04:00
flake8_quotes Add semantic model flag when inside f-string replacement field (#10766) 2024-04-04 09:08:48 +05:30
flake8_raise Avoid false-positives for parens-on-raise with futures.exception() (#10206) 2024-03-03 00:28:51 +00:00
flake8_return Stabilize fixes for `RET50{5-8}` (#12840) 2024-08-14 18:15:45 +02:00
flake8_self [`flake8-self`] Ignore sunder accesses in `flake8-self` rule (#11546) 2024-05-26 13:57:24 -04:00
flake8_simplify Detect SIM910 when using variadic keyword arguments, i.e., `**kwargs` (#13503) 2024-09-25 10:02:59 -05:00
flake8_slots Avoid recommending `__slots__` for classes that inherit from more than `namedtuple` (#12531) 2024-07-26 14:24:40 +00:00
flake8_tidy_imports Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
flake8_todos [`flake8-todos`] Allow words starting with todo (#13640) 2024-10-14 10:21:45 +00:00
flake8_type_checking Treat return type of `singledispatch` as runtime-required (#13957) 2024-10-28 20:33:28 -04:00
flake8_unused_arguments Make `ARG002` compatible with `EM101` when raising `NotImplementedError` (#13714) 2024-10-18 06:44:22 +00:00
flake8_use_pathlib Fix `PTH123` false positive when `open` is passed a file descriptor (#13616) 2024-10-04 08:48:47 -05:00
flynt Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
isort Avoid marking required imports as unused (#12537) 2024-07-26 14:23:43 -04:00
mccabe Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
numpy Ignore `NPY201` inside `except` blocks for compatibility with older numpy versions (#12490) 2024-07-24 20:03:23 +00:00
pandas_vet Limit inplace diagnostics to methods that accept inplace (#9495) 2024-01-12 14:12:54 -05:00
pep8_naming [`pep8-naming`] Don't flag `from` imports following conventional import names (`N817`) (#12946) 2024-08-17 12:05:42 +00:00
perflint Ignore list-copy recommendations for async `for` loops (#11250) 2024-05-02 11:48:52 -07:00
pycodestyle Fix E221 and E222 to flag missing or extra whitespace around `==` operator (#13890) 2024-10-23 15:02:29 +02:00
pydoclint [`pydoclint`] Ignore `DOC201` when function name is "__new__" (#13300) 2024-09-10 13:25:38 -04:00
pydocstyle Don't raise `D208` when last line is non-empty (#13372) 2024-09-26 14:53:21 +02:00
pyflakes Add `allow-unused-imports` setting for `unused-import` rule (`F401`) (#13601) 2024-10-03 19:44:44 +00:00
pygrep_hooks Respect per-file ignores for blanket and redirected noqa rules (#11728) 2024-06-04 03:57:59 +00:00
pylint [`pylint`] - restrict `iteration-over-set` to only work on sets of literals (`PLC0208`) (#13731) 2024-10-21 12:14:02 +01:00
pyupgrade [`pyupgrade`] Fix UP043 to apply to `collections.abc.Generator` and `collections.abc.AsyncGenerator` (#13611) 2024-10-03 13:06:15 +01:00
refurb [refurb] Count codepoints not bytes for `slice-to-remove-prefix-or-suffix (FURB188)` (#13631) 2024-10-07 16:13:28 +02:00
ruff Add test cases for `RUF006` with lambdas (#13628) 2024-10-04 14:09:43 -05:00
tryceratops Recode `TRY302` to `TRY203` (#13502) 2024-10-17 16:35:12 +01:00
__init__.py [`pylint`] (Re-)Implement `import-private-name` (`C2701`) (#9553) 2024-01-16 14:03:11 -05:00