mirror of https://github.com/astral-sh/ruff
[ty] Remove extra headings from the `overrides` configuration docs
This commit is contained in:
parent
d08e414179
commit
48f8815c4d
|
|
@ -1225,16 +1225,10 @@ pub struct TerminalOptions {
|
||||||
///
|
///
|
||||||
/// An override allows you to apply different rule configurations to specific
|
/// An override allows you to apply different rule configurations to specific
|
||||||
/// files or directories. Multiple overrides can match the same file, with
|
/// files or directories. Multiple overrides can match the same file, with
|
||||||
/// later overrides take precedence.
|
/// later overrides take precedence. Override rules take precedence over global
|
||||||
|
/// rules for matching files
|
||||||
///
|
///
|
||||||
/// ### Precedence
|
/// ```toml title="pyproject.toml"
|
||||||
///
|
|
||||||
/// - Later overrides in the array take precedence over earlier ones
|
|
||||||
/// - Override rules take precedence over global rules for matching files
|
|
||||||
///
|
|
||||||
/// ### Examples
|
|
||||||
///
|
|
||||||
/// ```toml
|
|
||||||
/// # Relax rules for test files
|
/// # Relax rules for test files
|
||||||
/// [[tool.ty.overrides]]
|
/// [[tool.ty.overrides]]
|
||||||
/// include = ["tests/**", "**/test_*.py"]
|
/// include = ["tests/**", "**/test_*.py"]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue