BlogDocs

[`pycodestyle`] Add blank line(s) rules (`E301`, `E302`, `E303`, `E304`, `E305`, `E306`)(#8720)

Closed
Merging
hoel-bagard:add_blank_lines_E30_V2
into
main
0%
IMPROVEMENTS
0
REGRESSIONS
0
UNTOUCHED
30
NEW
0
DROPPED
0
IGNORED
0

Benchmarks

formatter[large/dataset.py]
crates/ruff_benchmark/benches/formatter.rs::formatter::benchmark_formatter::formatter[large/dataset.py]
0%
9.8 ms
9.8 ms
formatter[numpy/ctypeslib.py]
crates/ruff_benchmark/benches/formatter.rs::formatter::benchmark_formatter::formatter[numpy/ctypeslib.py]
0%
2 ms
2 ms
formatter[numpy/globals.py]
crates/ruff_benchmark/benches/formatter.rs::formatter::benchmark_formatter::formatter[numpy/globals.py]
0%
260.3 µs
260.3 µs
formatter[pydantic/types.py]
crates/ruff_benchmark/benches/formatter.rs::formatter::benchmark_formatter::formatter[pydantic/types.py]
0%
3.7 ms
3.7 ms
formatter[unicode/pypinyin.py]
crates/ruff_benchmark/benches/formatter.rs::formatter::benchmark_formatter::formatter[unicode/pypinyin.py]
0%
692.5 µs
692.5 µs
lexer[large/dataset.py]
crates/ruff_benchmark/benches/lexer.rs::lexer::benchmark_lexer::lexer[large/dataset.py]
0%
1.4 ms
1.4 ms
lexer[numpy/ctypeslib.py]
crates/ruff_benchmark/benches/lexer.rs::lexer::benchmark_lexer::lexer[numpy/ctypeslib.py]
0%
315.3 µs
315.3 µs
lexer[numpy/globals.py]
crates/ruff_benchmark/benches/lexer.rs::lexer::benchmark_lexer::lexer[numpy/globals.py]
0%
45.9 µs
45.9 µs
lexer[pydantic/types.py]
crates/ruff_benchmark/benches/lexer.rs::lexer::benchmark_lexer::lexer[pydantic/types.py]
0%
636.7 µs
636.7 µs
lexer[unicode/pypinyin.py]
crates/ruff_benchmark/benches/lexer.rs::lexer::benchmark_lexer::lexer[unicode/pypinyin.py]
0%
100.5 µs
100.5 µs
linter/all-rules[large/dataset.py]
crates/ruff_benchmark/benches/linter.rs::all_rules::benchmark_all_rules::linter/all-rules[large/dataset.py]
0%
32.7 ms
32.7 ms
linter/all-rules[numpy/ctypeslib.py]
crates/ruff_benchmark/benches/linter.rs::all_rules::benchmark_all_rules::linter/all-rules[numpy/ctypeslib.py]
+1%
7.1 ms
7 ms
linter/all-rules[numpy/globals.py]
crates/ruff_benchmark/benches/linter.rs::all_rules::benchmark_all_rules::linter/all-rules[numpy/globals.py]
0%
993.3 µs
995.7 µs
linter/all-rules[pydantic/types.py]
crates/ruff_benchmark/benches/linter.rs::all_rules::benchmark_all_rules::linter/all-rules[pydantic/types.py]
+2%
14.6 ms
14.3 ms
linter/all-rules[unicode/pypinyin.py]
crates/ruff_benchmark/benches/linter.rs::all_rules::benchmark_all_rules::linter/all-rules[unicode/pypinyin.py]
0%
3.4 ms
3.4 ms
linter/default-rules[large/dataset.py]
crates/ruff_benchmark/benches/linter.rs::default_rules::benchmark_default_rules::linter/default-rules[large/dataset.py]
-1%
16.6 ms
16.7 ms
linter/default-rules[numpy/ctypeslib.py]
crates/ruff_benchmark/benches/linter.rs::default_rules::benchmark_default_rules::linter/default-rules[numpy/ctypeslib.py]
0%
3.3 ms
3.3 ms
linter/default-rules[numpy/globals.py]
crates/ruff_benchmark/benches/linter.rs::default_rules::benchmark_default_rules::linter/default-rules[numpy/globals.py]
0%
435.1 µs
435.3 µs
linter/default-rules[pydantic/types.py]
crates/ruff_benchmark/benches/linter.rs::default_rules::benchmark_default_rules::linter/default-rules[pydantic/types.py]
+1%
6.8 ms
6.7 ms
linter/default-rules[unicode/pypinyin.py]
crates/ruff_benchmark/benches/linter.rs::default_rules::benchmark_default_rules::linter/default-rules[unicode/pypinyin.py]
0%
1.2 ms
1.2 ms
linter/all-with-preview-rules[large/dataset.py]
crates/ruff_benchmark/benches/linter.rs::preview_rules::benchmark_preview_rules::linter/all-with-preview-rules[large/dataset.py]
0%
36 ms
35.9 ms
linter/all-with-preview-rules[numpy/ctypeslib.py]
crates/ruff_benchmark/benches/linter.rs::preview_rules::benchmark_preview_rules::linter/all-with-preview-rules[numpy/ctypeslib.py]
-1%
7.6 ms
7.7 ms
linter/all-with-preview-rules[numpy/globals.py]
crates/ruff_benchmark/benches/linter.rs::preview_rules::benchmark_preview_rules::linter/all-with-preview-rules[numpy/globals.py]
0%
1.1 ms
1.1 ms
linter/all-with-preview-rules[pydantic/types.py]
crates/ruff_benchmark/benches/linter.rs::preview_rules::benchmark_preview_rules::linter/all-with-preview-rules[pydantic/types.py]
-1%
15.8 ms
16 ms
linter/all-with-preview-rules[unicode/pypinyin.py]
crates/ruff_benchmark/benches/linter.rs::preview_rules::benchmark_preview_rules::linter/all-with-preview-rules[unicode/pypinyin.py]
0%
3.7 ms
3.7 ms
parser[large/dataset.py]
crates/ruff_benchmark/benches/parser.rs::parser::benchmark_parser::parser[large/dataset.py]
0%
12.6 ms
12.6 ms
parser[numpy/ctypeslib.py]
crates/ruff_benchmark/benches/parser.rs::parser::benchmark_parser::parser[numpy/ctypeslib.py]
0%
2.3 ms
2.3 ms
parser[numpy/globals.py]
crates/ruff_benchmark/benches/parser.rs::parser::benchmark_parser::parser[numpy/globals.py]
0%
258.7 µs
258.7 µs
parser[pydantic/types.py]
crates/ruff_benchmark/benches/parser.rs::parser::benchmark_parser::parser[pydantic/types.py]
0%
4.9 ms
4.9 ms
parser[unicode/pypinyin.py]
crates/ruff_benchmark/benches/parser.rs::parser::benchmark_parser::parser[unicode/pypinyin.py]
0%
808.2 µs
808.2 µs

Commits

Click on a commit to change the comparison range
base
main
0029b4f
0%
Remove unnecessary check.
bd282ec
8 months ago by hoel-bagard
0%
Update snapshots (Fix -> Safe fix)
2ef4d02
8 months ago by hoel-bagard
0%
Fix false positive caused by a class's docstring.
0f61011
8 months ago by hoel-bagard
0%
Only trigger E302 on non-indented classes/functions.
0e9ca4e
8 months ago by hoel-bagard
0%
Fix decorator linked false positive. decorator -> comment -> decorator was causing a false positive.
3f6f207
8 months ago by hoel-bagard
0%
Fix E301 false positive. Fix false positive where a method following an if (or other indentation inducing keyword) would trigger E301.
b667c5c
8 months ago by hoel-bagard
0%
Fix decorator + async false positive. This also move the trigger on an async def from the def to the async.
0bf4c45
8 months ago by hoel-bagard
0%
Clippy fix.
73e5ba9
8 months ago by hoel-bagard
0%
Fix docstring + comment leading to false positive.
c1a7a7c
8 months ago by hoel-bagard
0%
Fix E305 false positive for indented classes/defs
b484ca4
8 months ago by hoel-bagard
0%
Fix typo.
f7b2f89
8 months ago by hoel-bagard
0%
Rule simplification. Also fix a E306 regression.
5365830
8 months ago by hoel-bagard
0%
Fix E306 false negative when using async or decorator.
bafddf9
8 months ago by hoel-bagard
0%
Make if condition more readable.
4d2f7b5
8 months ago by hoel-bagard
+4%
Merge branch 'astral-sh:main' into add_blank_lines_E30_V2
46b0c46
8 months ago by hoel-bagard
+1%
Modify E303 to use top-levelness instead of class/def.
3eb5c62
8 months ago by hoel-bagard
-1%
Remove unnecessary clone derive.
9b15d8c
7 months ago by hoel-bagard
-4%
Update E306 cf https://github.com/PyCQA/pycodestyle/issues/1216
fd65c70
7 months ago by hoel-bagard
0%
BlankLinesTrackingVars -> BlankLinesChecker With BlankLinesChecker containing the method doing the checking.
727a17b
7 months ago by hoel-bagard
-8%
Add test case
cbb6c1b
7 months ago by hoel-bagard
+8%
Merge branch 'astral-sh:main' into add_blank_lines_E30_V2
29849d5
7 months ago by hoel-bagard
ResourcesHomePricingDocsBlogGitHub
Copyright © 2024 CodSpeed Technology SAS. All rights reserved.