Skip to content

[wip]Introduce rbs and add a type definition file for processing.rb first #56

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ source 'https://rubygems.org'
# Specify your gem's dependencies in youplot.gemspec
gemspec

group :development do
if RUBY_VERSION >= '3.0'
gem 'steep', require: false
gem 'typeprof'
end
end

group :test do
gem 'rake'
gem 'simplecov'
Expand Down
8 changes: 8 additions & 0 deletions Steepfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
D = Steep::Diagnostic

target :lib do
signature "sig"
check "lib" # Directory name to check

configure_code_diagnostics(D::Ruby.silent) # `silent` diagnostics setting
end
7 changes: 7 additions & 0 deletions sig/youplot/backends/processing.rbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module YouPlot
module Backends
module Processing
def count_values: ([], ?tally: true, ?reverse: false) -> Array[Array[untyped]]
end
end
end
Loading