   :hook (cmake-mode . cmake-font-lock-activate))
 
 ;; Formatting
-(defvar-local python-isort-executable "isort")
-(defvar-local python-isort-arguments '("--stdout" "-"))
 (use-package reformatter
   :quelpa (reformatter :fetcher github :repo "wyuenho/reformatter.el" :branch "post-processor")
   :config
-  (reformatter-define python-isort
-    :program python-isort-executable
-    :args python-isort-arguments)
-
   (reformatter-define yarn-eslint-format
     :program "yarn"
     :args `("--silent"


(defvar python-pre-commit-database-cache nil)
(defun python-pre-commit-virtualenv-path (hook-id)
  (use-package emacsql-sqlite)
  (when-let* ((db-file (concat
                        (file-name-as-directory
                         (or (getenv "PRE_COMMIT_HOME")

                       (with-temp-buffer
                         (insert-file-contents (concat pep518-config-file-dir "pyproject.toml"))
                         (goto-char (point-min))
                         (re-search-forward "^\\[tool.pyright\\]$" nil t nil)))))))))

(use-package lsp-sourcekit
  :after (lsp-mode))
