mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-02 22:54:42 +00:00
[flake8-import-conventions
] Add links to options (#8115)
This commit is contained in:
parent
8472a7e50f
commit
66e6388776
3 changed files with 10 additions and 0 deletions
|
@ -27,6 +27,9 @@ use ruff_text_size::Ranged;
|
|||
///
|
||||
/// tf.keras.backend
|
||||
/// ```
|
||||
///
|
||||
/// ## Options
|
||||
/// - `flake8-import-conventions.banned-aliases`
|
||||
#[violation]
|
||||
pub struct BannedImportAlias {
|
||||
name: String,
|
||||
|
|
|
@ -28,6 +28,9 @@ use ruff_text_size::Ranged;
|
|||
///
|
||||
/// pd.Series
|
||||
/// ```
|
||||
///
|
||||
/// ## Options
|
||||
/// - `flake8-import-conventions.banned-from`
|
||||
#[violation]
|
||||
pub struct BannedImportFrom {
|
||||
name: String,
|
||||
|
|
|
@ -30,6 +30,10 @@ use crate::renamer::Renamer;
|
|||
/// ```python
|
||||
/// import pandas as pd
|
||||
/// ```
|
||||
///
|
||||
/// ## Options
|
||||
/// - `flake8-import-conventions.aliases`
|
||||
/// - `flake8-import-conventions.extend-aliases`
|
||||
#[violation]
|
||||
pub struct UnconventionalImportAlias {
|
||||
name: String,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue