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
9 changed files with 27 additions and 11 deletions

1
.github/FUNDING.yml vendored Normal file
View File

@@ -0,0 +1 @@
ko_fi: kojix2

View File

@@ -1,6 +0,0 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"

View File

@@ -7,9 +7,9 @@ jobs:
strategy:
matrix:
os: ["ubuntu", "macos"]
ruby: ["2.6", "2.7", "3.0", "3.1", "3.2", "3.3", "3.4", "head"]
ruby: ["2.6", "2.7", "3.0", "3.1", "3.2", "3.3", "3.4"]
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}

View File

@@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ruby

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'

View File

@@ -1,7 +1,6 @@
The MIT License (MIT)
Copyright (c) 2020 kojix2
Copyright (c) 2025 Red Data Tools
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal

View File

@@ -311,7 +311,7 @@ bundle exec exe/uplot # Run youplot (Try out the edited code)
### Acknowledgements
* [sampo grafiikka](https://lepo.sampo-grafiikka.com/) - Project logo creation
* [sampo grafiikka](https://jypg.net/sampo_grafiikka) - Project logo creation
* [yutaas](https://github.com/yutaas) - English proofreading
## License

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