Skip to content

Commit

Permalink
fix steep stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
rickhull committed Jun 15, 2024
1 parent e81e2c2 commit 912956e
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
require 'rake/testtask'

BINDIR = Dir[File.join(ENV['HOME'], '.local/share/gem/ruby/*/bin')].last
STEEP = File.join(BINDIR, 'steep')

Rake::TestTask.new :test do |t|
t.pattern = "test/*.rb"
t.warning = true
Expand All @@ -14,10 +11,11 @@ Rake::TestTask.new bench: [:test, :loadavg] do |t|
t.description = "Run benchmarks"
end

#desc "Run type checks (RBS + Steep)"
#task :steep do
# sh "#{STEEP} check"
#end
desc "Run type checks (RBS + Steep)"
task :steep do
bindir = Dir[File.join(ENV['HOME'], '.local/share/gem/ruby/*/bin')].last
sh "#{File.join(bindir, 'steep')} check"
end

desc "Run example scripts"
task examples: [:test, :loadavg] do
Expand Down

0 comments on commit 912956e

Please sign in to comment.