mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-03 15:15:33 +00:00
Omit code frames for fixes with empty ranges (#12304)
## Summary Closes https://github.com/astral-sh/ruff/issues/12291. ## Test Plan ```shell ❯ cargo run check ../uv/foo --select INP /Users/crmarsh/workspace/uv/foo/bar/baz.py:1:1: INP001 File `/Users/crmarsh/workspace/uv/foo/bar/baz.py` is part of an implicit namespace package. Add an `__init__.py`. Found 1 error. ```
This commit is contained in:
parent
e58713e2ac
commit
940df67823
42 changed files with 11 additions and 457 deletions
|
@ -2,11 +2,3 @@
|
|||
source: crates/ruff_linter/src/rules/pydocstyle/mod.rs
|
||||
---
|
||||
D.py:1:1: D100 Missing docstring in public module
|
||||
|
|
||||
1 | # No docstring, so we can test D100
|
||||
| D100
|
||||
2 | from functools import wraps
|
||||
3 | import os
|
||||
|
|
||||
|
||||
|
||||
|
|
|
@ -2,7 +2,3 @@
|
|||
source: crates/ruff_linter/src/rules/pydocstyle/mod.rs
|
||||
---
|
||||
D100_pub.py:1:1: D100 Missing docstring in public module
|
||||
|
|
||||
|
|
||||
|
||||
|
||||
|
|
|
@ -2,7 +2,3 @@
|
|||
source: crates/ruff_linter/src/rules/pydocstyle/mod.rs
|
||||
---
|
||||
__init__.py:1:1: D104 Missing docstring in public package
|
||||
|
|
||||
|
|
||||
|
||||
|
||||
|
|
|
@ -2,12 +2,6 @@
|
|||
source: crates/ruff_linter/src/rules/pydocstyle/mod.rs
|
||||
---
|
||||
all.py:1:1: D100 Missing docstring in public module
|
||||
|
|
||||
1 | def public_func():
|
||||
| D100
|
||||
2 | pass
|
||||
|
|
||||
|
||||
all.py:1:5: D103 Missing docstring in public function
|
||||
|
|
||||
1 | def public_func():
|
||||
|
@ -30,5 +24,3 @@ all.py:10:11: D106 Missing docstring in public nested class
|
|||
| ^^^^^^^^^^^^^^^^^ D106
|
||||
11 | pass
|
||||
|
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue