ruff/crates/ruff_linter/resources/test/fixtures
Harutaka Kawamura 71da1d6df5
Fix await-outside-async to allow await at the top-level scope of a notebook (#14225)
## Summary

<!-- What's the purpose of the change? What does it do, and why? -->

Fix `await-outside-async` to allow `await` at the top-level scope of a
notebook.

```python
# foo.ipynb

await asyncio.sleep(1)  # should be allowed
```

## Test Plan

<!-- How was it tested? -->

A unit test
2024-11-09 12:44:48 -05: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 Detect items that hash to same value in duplicate sets (#14064) 2024-11-03 18:49:11 +00:00
flake8_builtins [flake8-builtins] Skip lambda expressions in builtin-argument-shadowing (A002) (#14144) 2024-11-07 05:34:09 +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] Add autofix for docstring-in-stub (PYI021) (#14150) 2024-11-07 12:00:19 +00: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 Allow open without context manager in return statement (#14066) 2024-11-03 14:16:27 -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 Detect items that hash to same value in duplicate dictionaries (#14065) 2024-11-03 14:16:34 -05:00
pygrep_hooks Respect per-file ignores for blanket and redirected noqa rules (#11728) 2024-06-04 03:57:59 +00:00
pylint Fix await-outside-async to allow await at the top-level scope of a notebook (#14225) 2024-11-09 12:44:48 -05:00
pyupgrade [pyupgrade] - ignore kwarg unpacking for UP044 (#14053) 2024-11-02 13:10:56 -04:00
refurb [refurb] Further special cases added to verbose-decimal-constructor (FURB157) (#14216) 2024-11-08 21:08:22 -05:00
ruff [ruff] Do not report when Optional has no type arguments (RUF013) (#14181) 2024-11-09 08:48:56 -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