branch: elpa/flycheck
commit 32b4a60daa7031b89f5854d18fc923a9a91d1172
Author: Simon Schubert <2...@0x2c.org>
Commit: Bozhidar Batsov <bozhi...@batsov.dev>

    Use project working-directory for python-ruff (#2068)
    
    Without having working-directory set to the project root, ruff will be 
confused about path names.
---
 flycheck.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/flycheck.el b/flycheck.el
index 71b5394fe4..6b4719624d 100644
--- a/flycheck.el
+++ b/flycheck.el
@@ -10842,6 +10842,7 @@ See URL `https://beta.ruff.rs/docs/'."
             (id (one-or-more (any alpha)) (one-or-more digit)) " "
             (message (one-or-more not-newline))
             line-end))
+  :working-directory flycheck-python-find-project-root 
   :modes (python-mode python-ts-mode)
   :next-checkers ((warning . python-mypy)))
 

Reply via email to