Avatar for the astral-sh user
astral-sh
ruff
BlogDocsChangelog

[`pydoclint`] Implement `docstring-missing-exception` and `docstring-extraneous-exception` (`DOC501`, `DOC502`)

#11471Merged
Comparing
augustelalande:darglint
(
9a6edd4
) with
augustelalande:darglint
(
0434606
)
CodSpeed Performance Gauge
-97%
Improvements
0
Regressions
3
Untouched
30
New
0
Dropped
0
Ignored
0

Benchmarks

Failed

red_knot_check_file[cold]Regression
crates/ruff_benchmark/benches/red_knot.rs::cold::benchmark_cold::red_knot/check_file::red_knot_check_file[cold]
CodSpeed Performance Gauge
-97%
346.4 µs
13,748.4 µs
red_knot_check_file[incremental]Regression
crates/ruff_benchmark/benches/red_knot.rs::incremental::benchmark_incremental::red_knot/check_file::red_knot_check_file[incremental]
CodSpeed Performance Gauge
-78%
95 µs
422.7 µs
red_knot_check_file[without_parse]Regression
crates/ruff_benchmark/benches/red_knot.rs::without_parse::benchmark_without_parse::red_knot/check_file::red_knot_check_file[without_parse]
CodSpeed Performance Gauge
-96%
260.5 µs
6,345.5 µs

Passed

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]
CodSpeed Performance Gauge
0%
4.8 ms
4.8 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]
CodSpeed Performance Gauge
0%
804.5 µs
803.3 µs
linter/default-rules[numpy/globals.py]
crates/ruff_benchmark/benches/linter.rs::default_rules::benchmark_default_rules::linter/default-rules[numpy/globals.py]
CodSpeed Performance Gauge
0%
184.5 µs
184.3 µs
lexer[numpy/globals.py]
crates/ruff_benchmark/benches/lexer.rs::lexer::benchmark_lexer::lexer[numpy/globals.py]
CodSpeed Performance Gauge
0%
30.5 µs
30.5 µs
linter/default-rules[unicode/pypinyin.py]
crates/ruff_benchmark/benches/linter.rs::default_rules::benchmark_default_rules::linter/default-rules[unicode/pypinyin.py]
CodSpeed Performance Gauge
0%
353.7 µs
353.4 µs
parser[numpy/globals.py]
crates/ruff_benchmark/benches/parser.rs::parser::benchmark_parser::parser[numpy/globals.py]
CodSpeed Performance Gauge
0%
102.2 µs
102.2 µs
lexer[numpy/ctypeslib.py]
crates/ruff_benchmark/benches/lexer.rs::lexer::benchmark_lexer::lexer[numpy/ctypeslib.py]
CodSpeed Performance Gauge
0%
217 µs
216.9 µs
lexer[unicode/pypinyin.py]
crates/ruff_benchmark/benches/lexer.rs::lexer::benchmark_lexer::lexer[unicode/pypinyin.py]
CodSpeed Performance Gauge
0%
74.5 µs
74.5 µs
linter/all-rules[numpy/globals.py]
crates/ruff_benchmark/benches/linter.rs::all_rules::benchmark_all_rules::linter/all-rules[numpy/globals.py]
CodSpeed Performance Gauge
0%
711.4 µs
711.2 µs
lexer[pydantic/types.py]
crates/ruff_benchmark/benches/lexer.rs::lexer::benchmark_lexer::lexer[pydantic/types.py]
CodSpeed Performance Gauge
0%
483 µs
483 µs
parser[pydantic/types.py]
crates/ruff_benchmark/benches/parser.rs::parser::benchmark_parser::parser[pydantic/types.py]
CodSpeed Performance Gauge
0%
2 ms
2 ms
formatter[unicode/pypinyin.py]
crates/ruff_benchmark/benches/formatter.rs::formatter::benchmark_formatter::formatter[unicode/pypinyin.py]
CodSpeed Performance Gauge
0%
652.2 µs
652.1 µs
parser[unicode/pypinyin.py]
crates/ruff_benchmark/benches/parser.rs::parser::benchmark_parser::parser[unicode/pypinyin.py]
CodSpeed Performance Gauge
0%
310.1 µs
310.1 µs
parser[numpy/ctypeslib.py]
crates/ruff_benchmark/benches/parser.rs::parser::benchmark_parser::parser[numpy/ctypeslib.py]
CodSpeed Performance Gauge
0%
913.1 µs
913 µs
parser[large/dataset.py]
crates/ruff_benchmark/benches/parser.rs::parser::benchmark_parser::parser[large/dataset.py]
CodSpeed Performance Gauge
0%
4.8 ms
4.8 ms
formatter[pydantic/types.py]
crates/ruff_benchmark/benches/formatter.rs::formatter::benchmark_formatter::formatter[pydantic/types.py]
CodSpeed Performance Gauge
0%
3.5 ms
3.5 ms
lexer[large/dataset.py]
crates/ruff_benchmark/benches/lexer.rs::lexer::benchmark_lexer::lexer[large/dataset.py]
CodSpeed Performance Gauge
0%
1.1 ms
1.1 ms
formatter[numpy/ctypeslib.py]
crates/ruff_benchmark/benches/formatter.rs::formatter::benchmark_formatter::formatter[numpy/ctypeslib.py]
CodSpeed Performance Gauge
0%
1.8 ms
1.8 ms
formatter[numpy/globals.py]
crates/ruff_benchmark/benches/formatter.rs::formatter::benchmark_formatter::formatter[numpy/globals.py]
CodSpeed Performance Gauge
0%
241.2 µs
241.2 µs
formatter[large/dataset.py]
crates/ruff_benchmark/benches/formatter.rs::formatter::benchmark_formatter::formatter[large/dataset.py]
CodSpeed Performance Gauge
0%
9.3 ms
9.3 ms
linter/default-rules[pydantic/types.py]
crates/ruff_benchmark/benches/linter.rs::default_rules::benchmark_default_rules::linter/default-rules[pydantic/types.py]
CodSpeed Performance Gauge
0%
1.9 ms
1.9 ms
linter/default-rules[numpy/ctypeslib.py]
crates/ruff_benchmark/benches/linter.rs::default_rules::benchmark_default_rules::linter/default-rules[numpy/ctypeslib.py]
CodSpeed Performance Gauge
0%
907.3 µs
908 µs
linter/default-rules[large/dataset.py]
crates/ruff_benchmark/benches/linter.rs::default_rules::benchmark_default_rules::linter/default-rules[large/dataset.py]
CodSpeed Performance Gauge
0%
3.7 ms
3.7 ms
linter/all-rules[large/dataset.py]
crates/ruff_benchmark/benches/linter.rs::all_rules::benchmark_all_rules::linter/all-rules[large/dataset.py]
CodSpeed Performance Gauge
0%
16.3 ms
16.4 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]
CodSpeed Performance Gauge
0%
19 ms
19.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]
CodSpeed Performance Gauge
0%
9.7 ms
9.7 ms
linter/all-rules[pydantic/types.py]
crates/ruff_benchmark/benches/linter.rs::all_rules::benchmark_all_rules::linter/all-rules[pydantic/types.py]
CodSpeed Performance Gauge
-1%
8.1 ms
8.1 ms
linter/all-rules[unicode/pypinyin.py]
crates/ruff_benchmark/benches/linter.rs::all_rules::benchmark_all_rules::linter/all-rules[unicode/pypinyin.py]
CodSpeed Performance Gauge
-1%
2.2 ms
2.2 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]
CodSpeed Performance Gauge
-1%
2.4 ms
2.4 ms
linter/all-rules[numpy/ctypeslib.py]
crates/ruff_benchmark/benches/linter.rs::all_rules::benchmark_all_rules::linter/all-rules[numpy/ctypeslib.py]
CodSpeed Performance Gauge
-1%
4.1 ms
4.1 ms

Commits

Click on a commit to change the comparison range
Base
augustelalande:darglint
0434606
-1%
bug
8201569
11 months ago
by augustelalande
+1%
share section_contexts
228298d
11 months ago
by augustelalande
0%
clippy
5230744
11 months ago
by augustelalande
0%
exclude classes
ebd102b
11 months ago
by augustelalande
0%
order was intentional
cdb1604
11 months ago
by augustelalande
0%
ignore variable exceptions for now
7a3c637
11 months ago
by augustelalande
0%
ignore variable exceptions
596bf41
11 months ago
by augustelalande
0%
handle exception calls, i.e., Exception()
3413e59
11 months ago
by augustelalande
0%
recode to pydoclint
4688d06
9 months ago
by augustelalande
0%
add license
269d3b6
9 months ago
by augustelalande
0%
return section_context directly
1f62e07
9 months ago
by augustelalande
0%
document section styles
c9bff03
9 months ago
by augustelalande
0%
clippy
b9da62d
9 months ago
by augustelalande
0%
document
1705b53
9 months ago
by augustelalande
0%
allow different variations of the qualified name in the docstring
cb5e037
9 months ago
by augustelalande
0%
clippy
585db73
9 months ago
by augustelalande
0%
Update crates/ruff_linter/src/rules/pydoclint/rules/check_docstring.rs Co-authored-by: T-256 <132141463+T-256@users.noreply.github.com>
0434606
9 months ago
by augustelalande
-98%
Add some docs; tweak diagnostic message; return None for no-Raises
9a6edd4
9 months ago
by charliermarsh
© 2025 CodSpeed Technology
Home Terms PrivacyDocs