branch: elpa/projectile
commit 047c2a4debe840365d9b939055a6b032509642d4
Author: Pierre-Antoine Comby <pierre-antoine.co...@crans.org>
Commit: GitHub <nore...@github.com>

    Add python PEP621/PEP5128 support (#1821)
---
 CHANGELOG.md  | 4 ++++
 projectile.el | 6 ++++++
 2 files changed, 10 insertions(+)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 70de7566fc..d477f32dac 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,6 +2,10 @@
 
 ## master (unreleased)
 
+### New features
+
+* [#1821](https://github.com/bbatsov/projectile/pull/1821): Add 
`pyproject.toml` discovery for python projects.
+
 ## 2.7.0 (2022-11-22)
 
 ### New features
diff --git a/projectile.el b/projectile.el
index a5f10d2e28..252ad61b68 100644
--- a/projectile.el
+++ b/projectile.el
@@ -3320,6 +3320,12 @@ a manual COMMAND-TYPE command is created with
                                   :test "poetry run python -m unittest 
discover"
                                   :test-prefix "test_"
                                   :test-suffix "_test")
+(projectile-register-project-type 'python-toml '("pyproject.toml")
+                                  :project-file "pyproject.toml"
+                                  :compile "python -m build"
+                                  :test "python -m unittest discover"
+                                  :test-prefix "test_"
+                                  :test-suffix "_test")
 ;; Java & friends
 (projectile-register-project-type 'maven '("pom.xml")
                                   :project-file "pom.xml"

Reply via email to