Skip to content

Commit

Permalink
[flake8-import-conventions] Add links to options (#8115)
Browse files Browse the repository at this point in the history
  • Loading branch information
harupy committed Oct 22, 2023
1 parent 8472a7e commit 66e6388
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
Expand Up @@ -27,6 +27,9 @@ use ruff_text_size::Ranged;
///
/// tf.keras.backend
/// ```
///
/// ## Options
/// - `flake8-import-conventions.banned-aliases`
#[violation]
pub struct BannedImportAlias {
name: String,
Expand Down
Expand Up @@ -28,6 +28,9 @@ use ruff_text_size::Ranged;
///
/// pd.Series
/// ```
///
/// ## Options
/// - `flake8-import-conventions.banned-from`
#[violation]
pub struct BannedImportFrom {
name: String,
Expand Down
Expand Up @@ -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,
Expand Down

0 comments on commit 66e6388

Please sign in to comment.