From ef1ca0dd3850b5031d63708acccf5e1d2c6b38dc Mon Sep 17 00:00:00 2001 From: Josh Cannon <3956745+thejcannon@users.noreply.github.com> Date: Mon, 22 Jul 2024 18:03:30 -0500 Subject: [PATCH] Fix bad markdown in CONTRIBUTING.md (#12466) See https://github.com/astral-sh/ruff/blob/main/CONTRIBUTING.md#import-categorization --- CONTRIBUTING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 174cad086a..8096a0d1a4 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -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 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. -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 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