mirror of https://github.com/astral-sh/ruff
add fix safety section to docs
This commit is contained in:
parent
da6b68cb58
commit
782cbe2e6c
|
|
@ -44,6 +44,11 @@ use crate::rules::flake8_tidy_imports::settings::Strictness;
|
||||||
/// ## Options
|
/// ## Options
|
||||||
/// - `lint.flake8-tidy-imports.ban-relative-imports`
|
/// - `lint.flake8-tidy-imports.ban-relative-imports`
|
||||||
///
|
///
|
||||||
|
/// ## Fix safety
|
||||||
|
/// This rule's fix is marked as unsafe because it may remove comments associated
|
||||||
|
/// with the import statement. The fix is only applied when the absolute module
|
||||||
|
/// path can be reliably determined.
|
||||||
|
///
|
||||||
/// [PEP 8]: https://peps.python.org/pep-0008/#imports
|
/// [PEP 8]: https://peps.python.org/pep-0008/#imports
|
||||||
#[derive(ViolationMetadata)]
|
#[derive(ViolationMetadata)]
|
||||||
pub(crate) struct RelativeImports {
|
pub(crate) struct RelativeImports {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue