From 60c05fc24abe142ccf52889e59c775af82557d2e Mon Sep 17 00:00:00 2001 From: Nicolas Karolak Date: Tue, 23 Jul 2024 08:56:21 +0200 Subject: [PATCH] feat: add basedpyright formula --- Formula/basedpyright.rb | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Formula/basedpyright.rb diff --git a/Formula/basedpyright.rb b/Formula/basedpyright.rb new file mode 100644 index 0000000..ff1ddea --- /dev/null +++ b/Formula/basedpyright.rb @@ -0,0 +1,16 @@ +require "language/node" + +class Basedpyright < Formula + desc "Pyright fork with various type checking improvements, improved vscode support and pylance features built into the language server" + homepage "https://github.com/DetachHead/basedpyright" + url "https://github.com/DetachHead/basedpyright/archive/refs/tags/v1.14.0.tar.gz" + sha256 "6a8b2258ae012db021b3851838a7121c09369fe0526e9156dd96f36887cd6f8e" + license "MIT" + + depends_on "node" + + def install + system "npm", "install", *Language::Node.std_npm_install_args(libexec) + bin.install_symlink Dir["#{libexec}/bin/*"] + end +end