Fix bad markdown in CONTRIBUTING.md (#12466)

See
https://github.com/astral-sh/ruff/blob/main/CONTRIBUTING.md#import-categorization
This commit is contained in:
Josh Cannon 2024-07-22 18:03:30 -05:00 committed by GitHub
parent c7b13bb8fc
commit ef1ca0dd38
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -905,7 +905,7 @@ There are three ways in which an import can be categorized as "first-party":
package (e.g., `from foo import bar` or `import foo.bar`), they'll be classified as first-party package (e.g., `from foo import bar` or `import foo.bar`), they'll be classified as first-party
automatically. This check is as simple as comparing the first segment of the current file's automatically. This check is as simple as comparing the first segment of the current file's
module path to the first segment of the import. module path to the first segment of the import.
1. **Source roots**: Ruff supports a `[src](https://docs.astral.sh/ruff/settings/#src)` setting, which 1. **Source roots**: Ruff supports a [`src`](https://docs.astral.sh/ruff/settings/#src) setting, which
sets the directories to scan when identifying first-party imports. The algorithm is sets the directories to scan when identifying first-party imports. The algorithm is
straightforward: given an import, like `import foo`, iterate over the directories enumerated in straightforward: given an import, like `import foo`, iterate over the directories enumerated in
the `src` setting and, for each directory, check for the existence of a subdirectory `foo` or a the `src` setting and, for each directory, check for the existence of a subdirectory `foo` or a