From 50a7065c66cb6ebf95d92f7381bf585db06d9dc5 Mon Sep 17 00:00:00 2001 From: Aditya Pal Date: Thu, 29 Aug 2024 09:25:49 +0530 Subject: [PATCH 1/2] Update faq.md to highlight changes to src This attempts to close https://github.com/astral-sh/ruff/issues/13134 --- docs/faq.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/faq.md b/docs/faq.md index ab1af20abcc12..95070a3a3d221 100644 --- a/docs/faq.md +++ b/docs/faq.md @@ -107,9 +107,10 @@ lint rules. (Instead, popular Flake8 plugins are re-implemented in Rust as part There are a few other minor incompatibilities between Ruff and the originating Flake8 plugins: - Ruff doesn't implement all the "opinionated" lint rules from flake8-bugbear. -- Depending on your project structure, Ruff and isort can differ in their detection of first-party - code. (This is often solved by modifying the `src` property, e.g., to `src = ["src"]`, if your - code is nested in a `src` directory.) +- Note: Prior to v.0.6.0, depending on your project structure, Ruff and isort could differ in their + detection of first-party code. (This was often solved by modifying the `src` property, e.g., to + `src = ["src"]`, if your code was nested in a `src` directory.) This should no longer be the case + as the default behaviour is to now look at `src` as well. ## How does Ruff's linter compare to Pylint? From a1f66a00c578833b3de2ec2325e1c25d18267e05 Mon Sep 17 00:00:00 2001 From: Dhruv Manilawala Date: Thu, 29 Aug 2024 17:25:18 +0530 Subject: [PATCH 2/2] Update faq.md --- docs/faq.md | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/docs/faq.md b/docs/faq.md index 95070a3a3d221..3718b85c0b6cc 100644 --- a/docs/faq.md +++ b/docs/faq.md @@ -103,14 +103,7 @@ conflicts with the isort rules, like `I001`). Beyond the rule set, Ruff's primary limitation vis-à-vis Flake8 is that it does not support custom lint rules. (Instead, popular Flake8 plugins are re-implemented in Rust as part of Ruff itself.) - -There are a few other minor incompatibilities between Ruff and the originating Flake8 plugins: - -- Ruff doesn't implement all the "opinionated" lint rules from flake8-bugbear. -- Note: Prior to v.0.6.0, depending on your project structure, Ruff and isort could differ in their - detection of first-party code. (This was often solved by modifying the `src` property, e.g., to - `src = ["src"]`, if your code was nested in a `src` directory.) This should no longer be the case - as the default behaviour is to now look at `src` as well. +One minor difference is that Ruff doesn't include all the 'opinionated' rules from flake8-bugbear. ## How does Ruff's linter compare to Pylint?