4 Commits

Author SHA1 Message Date
ericgpks
764fb977f3 fix: add condition for using steep and typeprof to pass CI with all Ruby versions
Some checks failed
test / ${{ matrix.os }} Ruby ${{ matrix.ruby }} (macos, 2.6) (push) Has been cancelled
test / ${{ matrix.os }} Ruby ${{ matrix.ruby }} (macos, 2.7) (push) Has been cancelled
test / ${{ matrix.os }} Ruby ${{ matrix.ruby }} (macos, 3.0) (push) Has been cancelled
test / ${{ matrix.os }} Ruby ${{ matrix.ruby }} (macos, 3.1) (push) Has been cancelled
test / ${{ matrix.os }} Ruby ${{ matrix.ruby }} (macos, 3.2) (push) Has been cancelled
test / ${{ matrix.os }} Ruby ${{ matrix.ruby }} (macos, 3.3) (push) Has been cancelled
test / ${{ matrix.os }} Ruby ${{ matrix.ruby }} (macos, 3.4) (push) Has been cancelled
test / ${{ matrix.os }} Ruby ${{ matrix.ruby }} (ubuntu, 2.6) (push) Has been cancelled
test / ${{ matrix.os }} Ruby ${{ matrix.ruby }} (ubuntu, 2.7) (push) Has been cancelled
test / ${{ matrix.os }} Ruby ${{ matrix.ruby }} (ubuntu, 3.0) (push) Has been cancelled
test / ${{ matrix.os }} Ruby ${{ matrix.ruby }} (ubuntu, 3.1) (push) Has been cancelled
test / ${{ matrix.os }} Ruby ${{ matrix.ruby }} (ubuntu, 3.2) (push) Has been cancelled
test / ${{ matrix.os }} Ruby ${{ matrix.ruby }} (ubuntu, 3.3) (push) Has been cancelled
test / ${{ matrix.os }} Ruby ${{ matrix.ruby }} (ubuntu, 3.4) (push) Has been cancelled
2025-04-30 23:20:59 +09:00
ericgpks
448c1e9079 feat: add processing.rbs as a type definition file for processing.rb
As a first step toward adopting rbs for this project, added type a definition for a simple method.
More type definitions will be added incrementally.
2025-04-28 22:31:43 +09:00
ericgpks
674daa84eb feat: add Steepfile with the minimum configuration
This file indicates that type definition files are placed in the `sig` directory and the actual implementation files that I want to define types for are located in the `lib` directory.
Additionally, it is configured to disable type error checking so as not to raise much errors.
2025-04-28 22:11:31 +09:00
ericgpks
3e2ab1258b feat: add necessary gems to introduce rbs to this repository
To add types, I would like to have help from typeprof to define rbs files for current library code that's why I added both steep and typeprof to Gemfile.
2025-04-28 22:01:16 +09:00
3 changed files with 22 additions and 0 deletions

View File

@@ -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'

8
Steepfile Normal file
View File

@@ -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

View File

@@ -0,0 +1,7 @@
module YouPlot
module Backends
module Processing
def count_values: ([], ?tally: true, ?reverse: false) -> Array[Array[untyped]]
end
end
end