mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-04 18:58:04 +00:00
Fix reference to ban-relative-imports setting (#2776)
This commit is contained in:
parent
863e39fe5f
commit
74731a3456
2 changed files with 8 additions and 8 deletions
|
@ -49,10 +49,10 @@ define_violation!(
|
|||
/// > ```
|
||||
///
|
||||
/// Note that degree of strictness packages can be specified via the
|
||||
/// [`strictness`](https://github.com/charliermarsh/ruff#strictness)
|
||||
/// configuration option, which allows banning all relative imports (`strictness = "all"`)
|
||||
/// or only those that extend into the parent module or beyond (`strictness = "parents"`,
|
||||
/// the default).
|
||||
/// [`ban-relative-imports`](https://github.com/charliermarsh/ruff#ban-relative-imports)
|
||||
/// configuration option, which allows banning all relative imports
|
||||
/// (`ban-relative-imports = "all"`) or only those that extend into the parent module or beyond
|
||||
/// (`ban-relative-imports = "parents"`, the default).
|
||||
///
|
||||
/// ## Example
|
||||
/// ```python
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue