diff --git a/.gitignore b/.gitignore index 1ef280e1..8b1228a8 100644 --- a/.gitignore +++ b/.gitignore @@ -1,9 +1,10 @@ -.prism.log +*.gem .idea/ +.prism.log .ruby-lsp/ .yardoc/ -doc/ -sorbet/ Brewfile.lock.json bin/tapioca -*.gem +doc/ +sorbet/* +!/sorbet/config diff --git a/.solargraph.yml b/.solargraph.yml new file mode 100644 index 00000000..98397e75 --- /dev/null +++ b/.solargraph.yml @@ -0,0 +1,9 @@ +--- +max_files: 0 +include: + - '*.gemspec' + - '/test/openai/test_helper.rb' + - 'Rakefile' + - 'lib/**/*.rb' +exclude: + - 'rbi/**/*' diff --git a/Rakefile b/Rakefile index 7ea8a2fc..cde192ee 100644 --- a/Rakefile +++ b/Rakefile @@ -70,7 +70,7 @@ multitask(:steep) do end multitask(:sorbet) do - sh(*%w[srb typecheck -- .], chdir: "./rbi") + sh(*%w[srb typecheck]) end file("sorbet/tapioca") do diff --git a/sorbet/config b/sorbet/config new file mode 100644 index 00000000..538c1528 --- /dev/null +++ b/sorbet/config @@ -0,0 +1,2 @@ +--dir=rbi +--ignore=test/