ruff/crates/ruff_linter/resources/test/fixtures
Evan Kohilas ebdaf5765a
[flake8-async] Sleep with >24 hour interval should usually sleep forever (ASYNC116) (#11498)
## Summary

Addresses #8451 by implementing rule 116 to add an unsafe fix when sleep
is used with a >24 hour interval to instead consider sleeping forever.

This rule is added as async instead as I my understanding was that these
trio rules would be moved to async anyway.

There are a couple of TODOs, which address further extending the rule by
adding support for lookups and evaluations, and also supporting `anyio`.
2024-05-23 16:25:50 -04: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 Avoid code comment detection in PEP 723 script tags (#10464) 2024-03-18 17:48:51 -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] Sleep with >24 hour interval should usually sleep forever (ASYNC116) (#11498) 2024-05-23 16:25:50 -04:00
flake8_bandit [`flake8-bandit`] Allow `urllib.request.urlopen` calls with static `Request` argument (#10964) 2024-04-16 02:30:23 +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 [`flake8-bugbear`] Ignore enum classes in `cached-instance-method` (`B019`) (#11312) 2024-05-06 14:19:22 -04:00
flake8_builtins Restrict `builtin-attribute-shadowing` to actual shadowed references (#9462) 2024-01-11 12:59:40 -05:00
flake8_commas Consider the new f-string tokens for `flake8-commas` (#8582) 2023-11-10 09:49:14 +05:30
flake8_comprehensions [flake8_comprehensions] add sum/min/max to unnecessary comprehension check (C419) (#10759) 2024-04-03 14:44:33 -06: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 Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +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 Add support for PEP 701 (#7376) 2023-09-29 02:55:39 +00: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 Avoid missing namespace violations in scripts with shebangs (#8710) 2023-11-16 17:21:33 -05: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`] Implement `PYI062` (`duplicate-literal-member`) (#11269) 2024-05-07 19:28:06 +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 [`flake8-return`] Ignore assignments to annotated variables in `unnecessary-assign` (#10741) 2024-04-02 16:18:05 -04:00
flake8_self Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
flake8_simplify [`flake8-simplify`] Avoid raising `SIM911` for non-`zip` attribute calls (#11126) 2024-04-24 13:05:17 +00:00
flake8_slots [`flake8-slots`] Respect same-file `Enum` subclasses (#11006) 2024-04-17 21:15:52 -04:00
flake8_tidy_imports Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
flake8_todos Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
flake8_trio Avoid `TRIO115` if the argument is a variable (#10376) 2024-03-13 13:09:18 +05:30
flake8_type_checking Sort edits prior to deduplicating in quotation fix (#11452) 2024-05-16 12:13:09 -04:00
flake8_unused_arguments Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
flake8_use_pathlib Show custom message for `Path.joinpath` with starred arguments (#7852) 2023-10-09 12:04:35 +00:00
flynt Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
isort Always place non-relative imports after relative imports (#10669) 2024-03-29 22:13:54 -04:00
mccabe Rename `ruff` crate to `ruff_linter` (#7529) 2023-09-20 08:38:27 +02:00
numpy Add `row_stack` to NumPy 2.0 migration rule (#10646) 2024-03-28 09:49:40 -04:00
pandas_vet Limit inplace diagnostics to methods that accept inplace (#9495) 2024-01-12 14:12:54 -05:00
pep8_naming Avoid debug assertion around NFKC renames (#11249) 2024-05-02 10:59:39 -07:00
perflint Ignore list-copy recommendations for async `for` loops (#11250) 2024-05-02 11:48:52 -07:00
pycodestyle Consider soft keywords for `E27` rules (#11446) 2024-05-20 05:38:06 +00:00
pydocstyle D403: Require capitalizing single word sentence (#10776) 2024-04-05 08:42:00 +02:00
pyflakes F401 - Recommend adding unused import bindings to `__all__` (#11314) 2024-05-14 17:02:33 -07:00
pygrep_hooks [`pygrep_hooks`] Fix `blanket-noqa` panic when last line has noqa with no newline (`PGH004`) (#11108) 2024-04-25 14:39:38 -04:00
pylint [`pylint`] Ignore `__slots__` with dynamic values (#11488) 2024-05-22 04:18:01 +00:00
pyupgrade Mark quotes as unnecessary for non-evaluated annotations (#11485) 2024-05-22 15:44:31 -04:00
refurb Respect operator precedence in `FURB110` (#11464) 2024-05-19 03:17:11 +00:00
ruff Fix a few typos found by codespell (#11404) 2024-05-13 13:22:35 +00:00
tryceratops Avoid failures due to non-deterministic binding ordering (#10478) 2024-03-19 18:01:33 +00:00
__init__.py [`pylint`] (Re-)Implement `import-private-name` (`C2701`) (#9553) 2024-01-16 14:03:11 -05:00