Skip to content

Commit 03e94ed

Browse files
committed
Use pyproject.toml as a project root marker
1 parent cb63c43 commit 03e94ed

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lisp/init-python.el

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,10 @@
3030
(when (maybe-require-package 'reformatter)
3131
(reformatter-define black :program "black" :args '("-")))
3232

33+
(with-eval-after-load 'project
34+
(add-to-list 'project-vc-extra-root-markers "pyproject.toml"))
35+
(with-eval-after-load 'projectile
36+
(add-to-list 'projectile-project-root-files "pyproject.toml"))
37+
3338
(provide 'init-python)
3439
;;; init-python.el ends here

0 commit comments

Comments
 (0)