        (re-search-forward "^\\[tool.poetry\\]$" nil t nil))
      (executable-find "poetry"))))
 
-(defvar python-pyproject-cache nil)
-(defun python-parse-pyproject ()
-  (let* ((pyproject-path (python-pyproject-path))
-         (cache-value (assoc-default pyproject-path python-pyproject-cache)))
-    (if cache-value
-        cache-value
-      (python-watch-config-file pyproject-path 'python-pyproject-cache 'python-parse-config-file)
-      (when-let ((content (python-parse-config-file pyproject-path)))
-        (push `(,pyproject-path . ,content) python-pyproject-cache)
-        content))))
-
 (defun python-use-pre-commit-p (requirements)
-  (and (python-pre-commit-config-path)
+  (and (python-pre-commit-config-file-path)
        (or (executable-find "pre-commit")
            (member "pre-commit" requirements))))
 


              (db
               (or (assoc-default db-file python-pre-commit-database-cache)
                   (let ((content (python-parse-pre-commit-db db-file)))
                     (python-watch-config-file db-file 'python-pre-commit-database-cache 'python-parse-pre-commit-db)
                     (push (cons db-file content) python-pre-commit-database-cache)
                     content)))

              (repo-config
               (seq-find

  (condition-case err
      (with-temp-buffer
        (funcall 'call-process "dasel" nil t nil "select" "-f" file-path "-w" "json")
        (json-parse-string (buffer-string) :object-type 'alist :array-type 'list))
    (error (message "%s" (error-message-string err)) nil)))

(defvar python-watched-config-files nil)
