[flake8-import-conventions] Add links to options (#8115)

This commit is contained in:
Harutaka Kawamura 2023-10-22 13:14:47 +09:00 committed by GitHub
parent 8472a7e50f
commit 66e6388776
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 0 deletions

View file

@ -27,6 +27,9 @@ use ruff_text_size::Ranged;
///
/// tf.keras.backend
/// ```
///
/// ## Options
/// - `flake8-import-conventions.banned-aliases`
#[violation]
pub struct BannedImportAlias {
name: String,

View file

@ -28,6 +28,9 @@ use ruff_text_size::Ranged;
///
/// pd.Series
/// ```
///
/// ## Options
/// - `flake8-import-conventions.banned-from`
#[violation]
pub struct BannedImportFrom {
name: String,

View file

@ -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,