test: update snapshots with just whitespace changes

These snapshot changes should *all* only be a result of changes to
trailing whitespace in the output. I checked a psuedo random sample of
these, and the whitespace found in the previous snapshots seems to be an
artifact of the rendering and _not_ of the source data. So this seems
like a strict bug fix to me.

There are other snapshots with whitespace changes, but they also have
other changes that we split out into separate commits. Basically, we're
going to do approximately one commit per category of change.

This represents, by far, the biggest chunk of changes to snapshots as a
result of the `annotate-snippets` upgrade.
This commit is contained in:
Andrew Gallant 2025-01-07 10:45:21 -05:00 committed by Andrew Gallant
parent 2922490cb8
commit 0de8216a25
779 changed files with 3619 additions and 4333 deletions

View file

@ -623,7 +623,7 @@ fn stdin_override_parser_py() {
fn stdin_fix_when_not_fixable_should_still_print_contents() { fn stdin_fix_when_not_fixable_should_still_print_contents() {
let mut cmd = RuffCheck::default().args(["--fix"]).build(); let mut cmd = RuffCheck::default().args(["--fix"]).build();
assert_cmd_snapshot!(cmd assert_cmd_snapshot!(cmd
.pass_stdin("import os\nimport sys\n\nif (1, 2):\n print(sys.version)\n"), @r" .pass_stdin("import os\nimport sys\n\nif (1, 2):\n print(sys.version)\n"), @r###"
success: false success: false
exit_code: 1 exit_code: 1
----- stdout ----- ----- stdout -----
@ -643,7 +643,7 @@ fn stdin_fix_when_not_fixable_should_still_print_contents() {
| |
Found 2 errors (1 fixed, 1 remaining). Found 2 errors (1 fixed, 1 remaining).
"); "###);
} }
#[test] #[test]

View file

@ -1,7 +1,6 @@
--- ---
source: crates/ruff_linter/src/message/text.rs source: crates/ruff_linter/src/message/text.rs
expression: content expression: content
snapshot_kind: text
--- ---
notebook.ipynb:cell 1:2:8: F401 [*] `os` imported but unused notebook.ipynb:cell 1:2:8: F401 [*] `os` imported but unused
| |

View file

@ -1,7 +1,6 @@
--- ---
source: crates/ruff_linter/src/message/text.rs source: crates/ruff_linter/src/message/text.rs
expression: content expression: content
snapshot_kind: text
--- ---
syntax_errors.py:1:15: SyntaxError: Expected one or more symbol names after import syntax_errors.py:1:15: SyntaxError: Expected one or more symbol names after import
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/airflow/mod.rs source: crates/ruff_linter/src/rules/airflow/mod.rs
snapshot_kind: text
--- ---
AIR302_class_attribute.py:13:4: AIR302 `register_dataset_change` is removed in Airflow 3.0 AIR302_class_attribute.py:13:4: AIR302 `register_dataset_change` is removed in Airflow 3.0
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/airflow/mod.rs source: crates/ruff_linter/src/rules/airflow/mod.rs
snapshot_kind: text
--- ---
AIR302_names.py:105:1: AIR302 `airflow.PY36` is removed in Airflow 3.0 AIR302_names.py:105:1: AIR302 `airflow.PY36` is removed in Airflow 3.0
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/airflow/mod.rs source: crates/ruff_linter/src/rules/airflow/mod.rs
snapshot_kind: text
--- ---
AIR303.py:159:1: AIR303 `airflow.hooks.S3_hook.provide_bucket_name` is moved into `amazon` provider in Airflow 3.0; AIR303.py:159:1: AIR303 `airflow.hooks.S3_hook.provide_bucket_name` is moved into `amazon` provider in Airflow 3.0;
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/eradicate/mod.rs source: crates/ruff_linter/src/rules/eradicate/mod.rs
snapshot_kind: text
--- ---
ERA001.py:1:1: ERA001 Found commented-out code ERA001.py:1:1: ERA001 Found commented-out code
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_2020/mod.rs source: crates/ruff_linter/src/rules/flake8_2020/mod.rs
snapshot_kind: text
--- ---
YTT101.py:6:7: YTT101 `sys.version[:3]` referenced (python3.10), use `sys.version_info` YTT101.py:6:7: YTT101 `sys.version[:3]` referenced (python3.10), use `sys.version_info`
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_2020/mod.rs source: crates/ruff_linter/src/rules/flake8_2020/mod.rs
snapshot_kind: text
--- ---
YTT102.py:4:12: YTT102 `sys.version[2]` referenced (python3.10), use `sys.version_info` YTT102.py:4:12: YTT102 `sys.version[2]` referenced (python3.10), use `sys.version_info`
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_2020/mod.rs source: crates/ruff_linter/src/rules/flake8_2020/mod.rs
snapshot_kind: text
--- ---
YTT103.py:4:1: YTT103 `sys.version` compared to string (python3.10), use `sys.version_info` YTT103.py:4:1: YTT103 `sys.version` compared to string (python3.10), use `sys.version_info`
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_2020/mod.rs source: crates/ruff_linter/src/rules/flake8_2020/mod.rs
snapshot_kind: text
--- ---
YTT201.py:7:7: YTT201 `sys.version_info[0] == 3` referenced (python4), use `>=` YTT201.py:7:7: YTT201 `sys.version_info[0] == 3` referenced (python4), use `>=`
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_2020/mod.rs source: crates/ruff_linter/src/rules/flake8_2020/mod.rs
snapshot_kind: text
--- ---
YTT202.py:4:4: YTT202 `six.PY3` referenced (python4), use `not six.PY2` YTT202.py:4:4: YTT202 `six.PY3` referenced (python4), use `not six.PY2`
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_2020/mod.rs source: crates/ruff_linter/src/rules/flake8_2020/mod.rs
snapshot_kind: text
--- ---
YTT203.py:4:1: YTT203 `sys.version_info[1]` compared to integer (python4), compare `sys.version_info` to tuple YTT203.py:4:1: YTT203 `sys.version_info[1]` compared to integer (python4), compare `sys.version_info` to tuple
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_2020/mod.rs source: crates/ruff_linter/src/rules/flake8_2020/mod.rs
snapshot_kind: text
--- ---
YTT204.py:4:1: YTT204 `sys.version_info.minor` compared to integer (python4), compare `sys.version_info` to tuple YTT204.py:4:1: YTT204 `sys.version_info.minor` compared to integer (python4), compare `sys.version_info` to tuple
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_2020/mod.rs source: crates/ruff_linter/src/rules/flake8_2020/mod.rs
snapshot_kind: text
--- ---
YTT301.py:4:12: YTT301 `sys.version[0]` referenced (python10), use `sys.version_info` YTT301.py:4:12: YTT301 `sys.version[0]` referenced (python10), use `sys.version_info`
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_2020/mod.rs source: crates/ruff_linter/src/rules/flake8_2020/mod.rs
snapshot_kind: text
--- ---
YTT302.py:4:1: YTT302 `sys.version` compared to string (python10), use `sys.version_info` YTT302.py:4:1: YTT302 `sys.version` compared to string (python10), use `sys.version_info`
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_2020/mod.rs source: crates/ruff_linter/src/rules/flake8_2020/mod.rs
snapshot_kind: text
--- ---
YTT303.py:4:7: YTT303 `sys.version[:1]` referenced (python10), use `sys.version_info` YTT303.py:4:7: YTT303 `sys.version[:1]` referenced (python10), use `sys.version_info`
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_annotations/mod.rs source: crates/ruff_linter/src/rules/flake8_annotations/mod.rs
snapshot_kind: text
--- ---
ignore_fully_untyped.py:24:5: ANN201 [*] Missing return type annotation for public function `error_partially_typed_1` ignore_fully_untyped.py:24:5: ANN201 [*] Missing return type annotation for public function `error_partially_typed_1`
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_annotations/mod.rs source: crates/ruff_linter/src/rules/flake8_annotations/mod.rs
snapshot_kind: text
--- ---
simple_magic_methods.py:2:9: ANN204 [*] Missing return type annotation for special method `__str__` simple_magic_methods.py:2:9: ANN204 [*] Missing return type annotation for special method `__str__`
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_async/mod.rs source: crates/ruff_linter/src/rules/flake8_async/mod.rs
snapshot_kind: text
--- ---
ASYNC105.py:30:5: ASYNC105 [*] Call to `trio.aclose_forcefully` is not immediately awaited ASYNC105.py:30:5: ASYNC105 [*] Call to `trio.aclose_forcefully` is not immediately awaited
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_async/mod.rs source: crates/ruff_linter/src/rules/flake8_async/mod.rs
snapshot_kind: text
--- ---
ASYNC115.py:5:11: ASYNC115 [*] Use `trio.lowlevel.checkpoint()` instead of `trio.sleep(0)` ASYNC115.py:5:11: ASYNC115 [*] Use `trio.lowlevel.checkpoint()` instead of `trio.sleep(0)`
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_async/mod.rs source: crates/ruff_linter/src/rules/flake8_async/mod.rs
snapshot_kind: text
--- ---
ASYNC116.py:11:11: ASYNC116 [*] `trio.sleep()` with >24 hour interval should usually be `trio.sleep_forever()` ASYNC116.py:11:11: ASYNC116 [*] `trio.sleep()` with >24 hour interval should usually be `trio.sleep_forever()`
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_async/mod.rs source: crates/ruff_linter/src/rules/flake8_async/mod.rs
snapshot_kind: text
--- ---
ASYNC210.py:8:5: ASYNC210 Async functions should not call blocking HTTP methods ASYNC210.py:8:5: ASYNC210 Async functions should not call blocking HTTP methods
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_async/mod.rs source: crates/ruff_linter/src/rules/flake8_async/mod.rs
snapshot_kind: text
--- ---
ASYNC22x.py:31:5: ASYNC220 Async functions should not create subprocesses with blocking methods ASYNC22x.py:31:5: ASYNC220 Async functions should not create subprocesses with blocking methods
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_async/mod.rs source: crates/ruff_linter/src/rules/flake8_async/mod.rs
snapshot_kind: text
--- ---
ASYNC22x.py:8:5: ASYNC221 Async functions should not run processes with blocking methods ASYNC22x.py:8:5: ASYNC221 Async functions should not run processes with blocking methods
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_async/mod.rs source: crates/ruff_linter/src/rules/flake8_async/mod.rs
snapshot_kind: text
--- ---
ASYNC22x.py:20:5: ASYNC222 Async functions should not wait on processes with blocking methods ASYNC22x.py:20:5: ASYNC222 Async functions should not wait on processes with blocking methods
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_async/mod.rs source: crates/ruff_linter/src/rules/flake8_async/mod.rs
snapshot_kind: text
--- ---
ASYNC230.py:6:5: ASYNC230 Async functions should not open files with blocking methods like `open` ASYNC230.py:6:5: ASYNC230 Async functions should not open files with blocking methods like `open`
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs
snapshot_kind: text
--- ---
S103.py:6:25: S103 `os.chmod` setting a permissive mask `0o227` on file or directory S103.py:6:25: S103 `os.chmod` setting a permissive mask `0o227` on file or directory
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs
snapshot_kind: text
--- ---
S105.py:13:12: S105 Possible hardcoded password assigned to: "password" S105.py:13:12: S105 Possible hardcoded password assigned to: "password"
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs
snapshot_kind: text
--- ---
S108.py:5:11: S108 Probable insecure usage of temporary file or directory: "/tmp/abc" S108.py:5:11: S108 Probable insecure usage of temporary file or directory: "/tmp/abc"
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs
snapshot_kind: text
--- ---
S108.py:5:11: S108 Probable insecure usage of temporary file or directory: "/tmp/abc" S108.py:5:11: S108 Probable insecure usage of temporary file or directory: "/tmp/abc"
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs
snapshot_kind: text
--- ---
S110.py:3:1: S110 `try`-`except`-`pass` detected, consider logging the exception S110.py:3:1: S110 `try`-`except`-`pass` detected, consider logging the exception
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs
snapshot_kind: text
--- ---
S110.py:3:1: S110 `try`-`except`-`pass` detected, consider logging the exception S110.py:3:1: S110 `try`-`except`-`pass` detected, consider logging the exception
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs
snapshot_kind: text
--- ---
S112.py:3:1: S112 `try`-`except`-`continue` detected, consider logging the exception S112.py:3:1: S112 `try`-`except`-`continue` detected, consider logging the exception
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs
snapshot_kind: text
--- ---
S113.py:46:1: S113 Probable use of `requests` call without timeout S113.py:46:1: S113 Probable use of `requests` call without timeout
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs
snapshot_kind: text
--- ---
S201.py:10:9: S201 Use of `debug=True` in Flask app detected S201.py:10:9: S201 Use of `debug=True` in Flask app detected
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs
snapshot_kind: text
--- ---
S301.py:3:1: S301 `pickle` and modules that wrap it can be unsafe when used to deserialize untrusted data, possible security issue S301.py:3:1: S301 `pickle` and modules that wrap it can be unsafe when used to deserialize untrusted data, possible security issue
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs
snapshot_kind: text
--- ---
S307.py:3:7: S307 Use of possibly insecure function; consider using `ast.literal_eval` S307.py:3:7: S307 Use of possibly insecure function; consider using `ast.literal_eval`
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs
snapshot_kind: text
--- ---
S310.py:6:1: S310 Audit URL open for permitted schemes. Allowing use of `file:` or custom schemes is often unexpected. S310.py:6:1: S310 Audit URL open for permitted schemes. Allowing use of `file:` or custom schemes is often unexpected.
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs
snapshot_kind: text
--- ---
S311.py:10:1: S311 Standard pseudo-random generators are not suitable for cryptographic purposes S311.py:10:1: S311 Standard pseudo-random generators are not suitable for cryptographic purposes
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs
snapshot_kind: text
--- ---
S312.py:3:1: S312 Telnet-related functions are being called. Telnet is considered insecure. Use SSH or some other encrypted protocol. S312.py:3:1: S312 Telnet-related functions are being called. Telnet is considered insecure. Use SSH or some other encrypted protocol.
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs
snapshot_kind: text
--- ---
S324.py:7:13: S324 Probable use of insecure hash functions in `hashlib`: `md5` S324.py:7:13: S324 Probable use of insecure hash functions in `hashlib`: `md5`
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs
snapshot_kind: text
--- ---
S501.py:5:47: S501 Probable use of `requests` call with `verify=False` disabling SSL certificate checks S501.py:5:47: S501 Probable use of `requests` call with `verify=False` disabling SSL certificate checks
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs
snapshot_kind: text
--- ---
S502.py:6:13: S502 Call made with insecure SSL protocol: `PROTOCOL_SSLv3` S502.py:6:13: S502 Call made with insecure SSL protocol: `PROTOCOL_SSLv3`
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs
snapshot_kind: text
--- ---
S504.py:4:1: S504 `ssl.wrap_socket` called without an `ssl_version`` S504.py:4:1: S504 `ssl.wrap_socket` called without an `ssl_version``
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs
snapshot_kind: text
--- ---
S505.py:29:35: S505 DSA key sizes below 2048 bits are considered breakable S505.py:29:35: S505 DSA key sizes below 2048 bits are considered breakable
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs
snapshot_kind: text
--- ---
S506.py:10:9: S506 Probable use of unsafe `yaml.load`. Allows instantiation of arbitrary objects. Consider `yaml.safe_load`. S506.py:10:9: S506 Probable use of unsafe `yaml.load`. Allows instantiation of arbitrary objects. Consider `yaml.safe_load`.
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs
snapshot_kind: text
--- ---
S507.py:15:40: S507 Paramiko call with policy set to automatically trust the unknown host key S507.py:15:40: S507 Paramiko call with policy set to automatically trust the unknown host key
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs
snapshot_kind: text
--- ---
S508.py:3:25: S508 The use of SNMPv1 and SNMPv2 is insecure. Use SNMPv3 if able. S508.py:3:25: S508 The use of SNMPv1 and SNMPv2 is insecure. Use SNMPv3 if able.
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs
snapshot_kind: text
--- ---
S509.py:4:12: S509 You should not use SNMPv3 without encryption. `noAuthNoPriv` & `authNoPriv` is insecure. S509.py:4:12: S509 You should not use SNMPv3 without encryption. `noAuthNoPriv` & `authNoPriv` is insecure.
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs
snapshot_kind: text
--- ---
S601.py:3:1: S601 Possible shell injection via Paramiko call; check inputs are properly sanitized S601.py:3:1: S601 Possible shell injection via Paramiko call; check inputs are properly sanitized
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs
snapshot_kind: text
--- ---
S602.py:4:1: S602 `subprocess` call with `shell=True` seems safe, but may be changed in the future; consider rewriting without `shell` S602.py:4:1: S602 `subprocess` call with `shell=True` seems safe, but may be changed in the future; consider rewriting without `shell`
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs
snapshot_kind: text
--- ---
S603.py:4:1: S603 `subprocess` call: check for execution of untrusted input S603.py:4:1: S603 `subprocess` call: check for execution of untrusted input
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs
snapshot_kind: text
--- ---
S607.py:9:11: S607 Starting a process with a partial executable path S607.py:9:11: S607 Starting a process with a partial executable path
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs
snapshot_kind: text
--- ---
S609.py:4:10: S609 Possible wildcard injection in call due to `*` usage S609.py:4:10: S609 Possible wildcard injection in call due to `*` usage
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs
snapshot_kind: text
--- ---
S610.py:4:44: S610 Use of Django `extra` can lead to SQL injection vulnerabilities S610.py:4:44: S610 Use of Django `extra` can lead to SQL injection vulnerabilities
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs
snapshot_kind: text
--- ---
S612.py:3:5: S612 Use of insecure `logging.config.listen` detected S612.py:3:5: S612 Use of insecure `logging.config.listen` detected
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs
snapshot_kind: text
--- ---
S701.py:9:57: S701 Using jinja2 templates with `autoescape=False` is dangerous and can lead to XSS. Ensure `autoescape=True` or use the `select_autoescape` function. S701.py:9:57: S701 Using jinja2 templates with `autoescape=False` is dangerous and can lead to XSS. Ensure `autoescape=True` or use the `select_autoescape` function.
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs source: crates/ruff_linter/src/rules/flake8_bandit/mod.rs
snapshot_kind: text
--- ---
S702.py:6:1: S702 Mako templates allow HTML and JavaScript rendering by default and are inherently open to XSS attacks S702.py:6:1: S702 Mako templates allow HTML and JavaScript rendering by default and are inherently open to XSS attacks
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs
snapshot_kind: text
--- ---
B003.py:9:1: B003 Assigning to `os.environ` doesn't clear the environment B003.py:9:1: B003 Assigning to `os.environ` doesn't clear the environment
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs
snapshot_kind: text
--- ---
B004.py:3:8: B004 [*] Using `hasattr(x, "__call__")` to test if x is callable is unreliable. Use `callable(x)` for consistent results. B004.py:3:8: B004 [*] Using `hasattr(x, "__call__")` to test if x is callable is unreliable. Use `callable(x)` for consistent results.
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs
snapshot_kind: text
--- ---
B005.py:4:1: B005 Using `.strip()` with multi-character strings is misleading B005.py:4:1: B005 Using `.strip()` with multi-character strings is misleading
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs
snapshot_kind: text
--- ---
B006_1.py:3:22: B006 [*] Do not use mutable data structures for argument defaults B006_1.py:3:22: B006 [*] Do not use mutable data structures for argument defaults
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs
snapshot_kind: text
--- ---
B006_2.py:4:22: B006 [*] Do not use mutable data structures for argument defaults B006_2.py:4:22: B006 [*] Do not use mutable data structures for argument defaults
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs
snapshot_kind: text
--- ---
B006_6.py:4:22: B006 [*] Do not use mutable data structures for argument defaults B006_6.py:4:22: B006 [*] Do not use mutable data structures for argument defaults
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs
snapshot_kind: text
--- ---
B006_7.py:4:22: B006 [*] Do not use mutable data structures for argument defaults B006_7.py:4:22: B006 [*] Do not use mutable data structures for argument defaults
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs
snapshot_kind: text
--- ---
B006_B008.py:63:25: B006 [*] Do not use mutable data structures for argument defaults B006_B008.py:63:25: B006 [*] Do not use mutable data structures for argument defaults
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs
snapshot_kind: text
--- ---
B007.py:6:5: B007 Loop control variable `i` not used within loop body B007.py:6:5: B007 Loop control variable `i` not used within loop body
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs
snapshot_kind: text
--- ---
B009_B010.py:19:1: B009 [*] Do not call `getattr` with a constant attribute value. It is not any safer than normal property access. B009_B010.py:19:1: B009 [*] Do not call `getattr` with a constant attribute value. It is not any safer than normal property access.
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs
snapshot_kind: text
--- ---
B009_B010.py:50:1: B010 [*] Do not call `setattr` with a constant attribute value. It is not any safer than normal property access. B009_B010.py:50:1: B010 [*] Do not call `setattr` with a constant attribute value. It is not any safer than normal property access.
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs
snapshot_kind: text
--- ---
B012.py:5:9: B012 `return` inside `finally` blocks cause exceptions to be silenced B012.py:5:9: B012 `return` inside `finally` blocks cause exceptions to be silenced
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs
snapshot_kind: text
--- ---
B015.py:3:1: B015 Pointless comparison. Did you mean to assign a value? Otherwise, prepend `assert` or remove it. B015.py:3:1: B015 Pointless comparison. Did you mean to assign a value? Otherwise, prepend `assert` or remove it.
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs
snapshot_kind: text
--- ---
B016.py:6:7: B016 Cannot raise a literal. Did you intend to return it or raise an Exception? B016.py:6:7: B016 Cannot raise a literal. Did you intend to return it or raise an Exception?
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs
snapshot_kind: text
--- ---
B017.py:23:14: B017 Do not assert blind exception: `Exception` B017.py:23:14: B017 Do not assert blind exception: `Exception`
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs
snapshot_kind: text
--- ---
B019.py:78:5: B019 Use of `functools.lru_cache` or `functools.cache` on methods can lead to memory leaks B019.py:78:5: B019 Use of `functools.lru_cache` or `functools.cache` on methods can lead to memory leaks
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs
snapshot_kind: text
--- ---
B020.py:8:5: B020 Loop control variable `items` overrides iterable it iterates B020.py:8:5: B020 Loop control variable `items` overrides iterable it iterates
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs
snapshot_kind: text
--- ---
B021.py:1:1: B021 f-string used as docstring. Python will interpret this as a joined string, rather than a docstring. B021.py:1:1: B021 f-string used as docstring. Python will interpret this as a joined string, rather than a docstring.
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs
snapshot_kind: text
--- ---
B022.py:9:6: B022 No arguments passed to `contextlib.suppress`. No exceptions will be suppressed and therefore this context manager is redundant B022.py:9:6: B022 No arguments passed to `contextlib.suppress`. No exceptions will be suppressed and therefore this context manager is redundant
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs
snapshot_kind: text
--- ---
B023.py:12:30: B023 Function definition does not bind loop variable `x` B023.py:12:30: B023 Function definition does not bind loop variable `x`
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs
snapshot_kind: text
--- ---
B028.py:8:1: B028 [*] No explicit `stacklevel` keyword argument found B028.py:8:1: B028 [*] No explicit `stacklevel` keyword argument found
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs
snapshot_kind: text
--- ---
B029.py:8:1: B029 Using `except ():` with an empty tuple does not catch anything; add exceptions to handle B029.py:8:1: B029 Using `except ():` with an empty tuple does not catch anything; add exceptions to handle
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs
snapshot_kind: text
--- ---
B031.py:27:37: B031 Using the generator returned from `itertools.groupby()` more than once will do nothing on the second usage B031.py:27:37: B031 Using the generator returned from `itertools.groupby()` more than once will do nothing on the second usage
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs
snapshot_kind: text
--- ---
B032.py:9:1: B032 Possible unintentional type annotation (using `:`). Did you mean to assign (using `=`)? B032.py:9:1: B032 Possible unintentional type annotation (using `:`). Did you mean to assign (using `=`)?
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs
snapshot_kind: text
--- ---
B033.py:4:35: B033 [*] Sets should not contain duplicate item `"value1"` B033.py:4:35: B033 [*] Sets should not contain duplicate item `"value1"`
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs
snapshot_kind: text
--- ---
B034.py:5:1: B034 `re.sub` should pass `count` and `flags` as keyword arguments to avoid confusion due to unintuitive argument positions B034.py:5:1: B034 `re.sub` should pass `count` and `flags` as keyword arguments to avoid confusion due to unintuitive argument positions
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs
snapshot_kind: text
--- ---
B039.py:21:26: B039 Do not use mutable data structures for `ContextVar` defaults B039.py:21:26: B039 Do not use mutable data structures for `ContextVar` defaults
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs
snapshot_kind: text
--- ---
B901.py:9:9: B901 Using `yield` and `return {value}` in a generator function can lead to confusing behavior B901.py:9:9: B901 Using `yield` and `return {value}` in a generator function can lead to confusing behavior
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs
snapshot_kind: text
--- ---
B904.py:10:9: B904 Within an `except` clause, raise exceptions with `raise ... from err` or `raise ... from None` to distinguish them from errors in exception handling B904.py:10:9: B904 Within an `except` clause, raise exceptions with `raise ... from err` or `raise ... from None` to distinguish them from errors in exception handling
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs
snapshot_kind: text
--- ---
B905.py:4:1: B905 [*] `zip()` without an explicit `strict=` parameter B905.py:4:1: B905 [*] `zip()` without an explicit `strict=` parameter
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs
snapshot_kind: text
--- ---
B909.py:12:5: B909 Mutation to loop iterable `some_list` during iteration B909.py:12:5: B909 Mutation to loop iterable `some_list` during iteration
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs source: crates/ruff_linter/src/rules/flake8_bugbear/mod.rs
snapshot_kind: text
--- ---
B911.py:5:1: B911 `itertools.batched()` without an explicit `strict` parameter B911.py:5:1: B911 `itertools.batched()` without an explicit `strict` parameter
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_builtins/mod.rs source: crates/ruff_linter/src/rules/flake8_builtins/mod.rs
snapshot_kind: text
--- ---
A001.py:5:1: A001 Variable `print` is shadowing a Python builtin A001.py:5:1: A001 Variable `print` is shadowing a Python builtin
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_builtins/mod.rs source: crates/ruff_linter/src/rules/flake8_builtins/mod.rs
snapshot_kind: text
--- ---
A001.py:5:1: A001 Variable `print` is shadowing a Python builtin A001.py:5:1: A001 Variable `print` is shadowing a Python builtin
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_builtins/mod.rs source: crates/ruff_linter/src/rules/flake8_builtins/mod.rs
snapshot_kind: text
--- ---
A003.py:17:31: A003 Python builtin is shadowed by method `str` from line 14 A003.py:17:31: A003 Python builtin is shadowed by method `str` from line 14
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_builtins/mod.rs source: crates/ruff_linter/src/rules/flake8_builtins/mod.rs
snapshot_kind: text
--- ---
A003.py:17:31: A003 Python builtin is shadowed by method `str` from line 14 A003.py:17:31: A003 Python builtin is shadowed by method `str` from line 14
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_builtins/mod.rs source: crates/ruff_linter/src/rules/flake8_builtins/mod.rs
snapshot_kind: text
--- ---
A004.py:1:16: A004 Import `sum` is shadowing a Python builtin A004.py:1:16: A004 Import `sum` is shadowing a Python builtin
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_builtins/mod.rs source: crates/ruff_linter/src/rules/flake8_builtins/mod.rs
snapshot_kind: text
--- ---
A004.py:1:16: A004 Import `sum` is shadowing a Python builtin A004.py:1:16: A004 Import `sum` is shadowing a Python builtin
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_builtins/mod.rs source: crates/ruff_linter/src/rules/flake8_builtins/mod.rs
snapshot_kind: text
--- ---
A006.py:1:8: A006 Lambda argument `print` is shadowing a Python builtin A006.py:1:8: A006 Lambda argument `print` is shadowing a Python builtin
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_commas/mod.rs source: crates/ruff_linter/src/rules/flake8_commas/mod.rs
snapshot_kind: text
--- ---
COM81_syntax_error.py:3:5: SyntaxError: Starred expression cannot be used here COM81_syntax_error.py:3:5: SyntaxError: Starred expression cannot be used here
| |

View file

@ -1,6 +1,5 @@
--- ---
source: crates/ruff_linter/src/rules/flake8_comprehensions/mod.rs source: crates/ruff_linter/src/rules/flake8_comprehensions/mod.rs
snapshot_kind: text
--- ---
C416.py:6:1: C416 [*] Unnecessary list comprehension (rewrite using `list()`) C416.py:6:1: C416 [*] Unnecessary list comprehension (rewrite using `list()`)
| |

Some files were not shown because too many files have changed in this diff Show more