ruff/crates/ruff_linter/resources/test/fixtures/pycodestyle
Dan Parizher aa63c24b8f
Some checks are pending
CI / cargo build (release) (push) Waiting to run
CI / mkdocs (push) Waiting to run
CI / Determine changes (push) Waiting to run
CI / cargo fmt (push) Waiting to run
CI / cargo clippy (push) Blocked by required conditions
CI / cargo test (linux) (push) Blocked by required conditions
CI / cargo test (linux, release) (push) Blocked by required conditions
CI / cargo test (windows) (push) Blocked by required conditions
CI / cargo test (wasm) (push) Blocked by required conditions
CI / cargo build (msrv) (push) Blocked by required conditions
CI / cargo fuzz build (push) Blocked by required conditions
CI / fuzz parser (push) Blocked by required conditions
CI / test scripts (push) Blocked by required conditions
CI / ecosystem (push) Blocked by required conditions
CI / Fuzz for new ty panics (push) Blocked by required conditions
CI / cargo shear (push) Blocked by required conditions
CI / python package (push) Waiting to run
CI / pre-commit (push) Waiting to run
CI / formatter instabilities and black similarity (push) Blocked by required conditions
CI / test ruff-lsp (push) Blocked by required conditions
CI / check playground (push) Blocked by required conditions
CI / benchmarks-instrumented (push) Blocked by required conditions
CI / benchmarks-walltime (push) Blocked by required conditions
[ty Playground] Release / publish (push) Waiting to run
[pycodestyle] Fix E301 to only trigger for functions immediately within a class (#19768)
## Summary

Fixes #19752

---------

Co-authored-by: Brent Westbrook <brentrwestbrook@gmail.com>
2025-09-16 11:00:07 -04:00
..
.editorconfig [pycodestyle] Respect isort settings in blank line rules (E3*) (#10096) 2024-03-05 10:09:15 +00:00
constant_literals.py Add check for is comparison with mutable initialisers to rule F632 (#8607) 2023-11-11 00:29:23 +00:00
E2_syntax_error.py [pycodestyle] Do not trigger E225 and E275 when the next token is a ')' (#10315) 2024-03-11 21:23:18 +00:00
E11.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
E20.py [pycodestyle] Handle brace escapes for t-strings in logical lines (#19358) 2025-07-15 14:48:48 +00:00
E21.py Avoid un-setting bracket flag in logical lines (#8380) 2023-10-31 10:30:15 -04:00
E22.py [pycodestyle] Avoid false positives and negatives related to type parameter default syntax (E225, E251) (#15214) 2025-01-01 11:28:25 +01:00
E23.py [pycodestyle] Handle brace escapes for t-strings in logical lines (#19358) 2025-07-15 14:48:48 +00:00
E24.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
E25.py [pycodestyle] Avoid false positives related to type aliases (E252) (#15356) 2025-01-08 16:04:08 +01:00
E26.py Add fix for comment-related whitespace rules (#9075) 2023-12-09 15:18:07 -05:00
E27.py Fix F701 to F707 errors in tests (#19125) 2025-07-04 13:43:18 -05:00
E30.ipynb [pycodestyle] Avoid blank line rules for the first logical line in cell (#10291) 2024-03-25 11:19:30 +00:00
E30.py [pycodestyle] Fix E301 to only trigger for functions immediately within a class (#19768) 2025-09-16 11:00:07 -04:00
E30.pyi [pycodestyle]: Make blank lines in typing stub files optional (E3*) (#10098) 2024-03-05 12:48:50 +01:00
E30_isort.py [pycodestyle] Respect isort settings in blank line rules (E3*) (#10096) 2024-03-05 10:09:15 +00:00
E30_isort.pyi [pycodestyle]: Make blank lines in typing stub files optional (E3*) (#10098) 2024-03-05 12:48:50 +01:00
E30_syntax_error.py Enable token-based rules on source with syntax errors (#11950) 2024-07-02 08:57:46 +00:00
E40.py [pycodestyle] Add fix for multiple-imports-on-one-line (E401) (#9518) 2024-01-21 15:33:38 -05:00
E70.py Allow collapsed-ellipsis bodies in other statements (#8499) 2023-11-05 19:42:34 -05:00
E101.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
E204.py [pycodestyle] Whitespace after decorator (E204) (#12140) 2024-07-04 23:31:03 +00:00
E302_first_line_docstring.py [pycodestyle] Do not ignore lines before the first logical line in blank lines rules (#10382) 2024-03-14 14:05:24 +05:30
E302_first_line_expression.py [pycodestyle] Do not ignore lines before the first logical line in blank lines rules (#10382) 2024-03-14 14:05:24 +05:30
E302_first_line_function.py [pycodestyle] Do not ignore lines before the first logical line in blank lines rules (#10382) 2024-03-14 14:05:24 +05:30
E302_first_line_statement.py [pycodestyle] Do not ignore lines before the first logical line in blank lines rules (#10382) 2024-03-14 14:05:24 +05:30
E303_first_line_comment.py [pycodestyle] Do not ignore lines before the first logical line in blank lines rules (#10382) 2024-03-14 14:05:24 +05:30
E303_first_line_docstring.py [pycodestyle] Do not ignore lines before the first logical line in blank lines rules (#10382) 2024-03-14 14:05:24 +05:30
E303_first_line_expression.py [pycodestyle] Do not ignore lines before the first logical line in blank lines rules (#10382) 2024-03-14 14:05:24 +05:30
E303_first_line_statement.py [pycodestyle] Do not ignore lines before the first logical line in blank lines rules (#10382) 2024-03-14 14:05:24 +05:30
E402.ipynb [E402] Allow cell magics before an import (#10545) 2024-03-24 16:20:00 +05:30
E402_0.py Remove special pre-visit for module docstrings (#9261) 2023-12-23 10:03:12 -05:00
E402_1.py Remove special pre-visit for module docstrings (#9261) 2023-12-23 10:03:12 -05:00
E402_2.py [pycodestyle] Allow os.environ modifications between imports (E402) (#10066) 2024-02-20 13:24:27 -05:00
E402_3.py [pycodestyle] Exempt pytest.importorskip() calls (E402) (#14474) 2024-11-19 22:08:15 -05:00
E402_4.py [pycodestyle] Exempt sys.path += ... calls (E402) (#15980) 2025-02-06 08:51:51 +01:00
E402_5.py [pycodestyle] Exempt site.addsitedir(...) calls (E402) (#16251) 2025-02-19 14:31:47 +01:00
E501.py Allow SPDX license headers to exceed the line length (#10481) 2024-03-19 15:57:03 -04:00
E501_1.py Ignore overlong pragma comments when enforcing linter line length (#7692) 2023-09-29 23:26:52 +00:00
E501_2.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
E501_3.py Ignore overlong pragma comments when enforcing linter line length (#7692) 2023-09-29 23:26:52 +00:00
E501_4.py Use char-wise width instead of str-width (#12135) 2024-07-01 18:56:27 +05:30
E502.py [pycodestyle] Implement redundant-backslash (E502) (#10292) 2024-03-11 21:15:06 -04:00
E703.ipynb Avoid E703 for last expression in a cell (#8821) 2023-11-23 07:40:57 -06:00
E711.py Avoid infinite loop in constant vs. None comparisons (#9376) 2024-01-02 22:04:52 -05:00
E712.py [pycodestyle] Fix duplicated diagnostic in E712 (#17651) 2025-04-28 08:31:16 +01:00
E713.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
E714.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
E721.py Improve handling of builtin symbols in linter rules (#10919) 2024-04-16 11:37:31 +01:00
E722.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
E731.py [pycodestyle] Preserve return type annotation for ParamSpec (E731) (#20108) 2025-08-28 20:31:45 +00:00
E741.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
E741.pyi Disable E741 in stub files (#13119) 2024-08-27 15:02:14 +01:00
E742.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
E743.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
shebang.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
W19.py Avoid syntax errors for test cases (#11923) 2024-06-18 17:16:27 +05:30
W29.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
W291.py Index multiline f-strings (#9837) 2024-02-05 21:25:33 -05:00
W292_0.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
W292_1.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
W292_2.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
W292_3.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
W292_4.py Rename ruff crate to ruff_linter (#7529) 2023-09-20 08:38:27 +02:00
W293.py Do multiline string test for W293 too (#10049) 2024-02-19 11:58:56 +00:00
W391.ipynb [pycodestyle] Handle each cell separately for too-many-newlines-at-end-of-file (W391) (#15308) 2025-01-09 10:50:39 -06:00
W391_0.py [pycodestyle] Implement blank-line-at-end-of-file (W391) (#10243) 2024-03-11 22:07:59 -04:00
W391_1.py [pycodestyle] Implement blank-line-at-end-of-file (W391) (#10243) 2024-03-11 22:07:59 -04:00
W391_2.py [pycodestyle] Implement blank-line-at-end-of-file (W391) (#10243) 2024-03-11 22:07:59 -04:00
W391_3.py [pycodestyle] Implement blank-line-at-end-of-file (W391) (#10243) 2024-03-11 22:07:59 -04:00
W391_4.py [pycodestyle] Implement blank-line-at-end-of-file (W391) (#10243) 2024-03-11 22:07:59 -04:00
W505.py Spellcheck & grammar (#10375) 2024-03-13 02:34:23 +00:00
W505_utf_8.py Spellcheck & grammar (#10375) 2024-03-13 02:34:23 +00:00
W605_0.py Treat escaped newline as valid sequence (#11465) 2024-05-19 03:32:32 +00:00
W605_1.py Implement template strings (#17851) 2025-05-30 15:00:56 -05:00