Skip to content

Commit a15d0b9

Browse files
authored
Prepare to introduce rbs and add a configuration file (#238)
### What I did in this PR To introduce rbs to this repository, I added the necessary gems like `steep` and `typeprof` to gemspec file. I use these two gems to get support for the RBS file's type checking and type generation. I also added a Steepfile, which includes how to check the RBS files. The configuration of Steepfile is minimal, such as which directory to put RBS files in and not to raise an error with type checking at first. ### What I didn't do in this PR This is a PR for preparation to introduce RBS to this repository, I added only configuration files. The actual RBS file will be added in the next PR with a new dataset.
1 parent 9cbd4bf commit a15d0b9

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

Gemfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,9 @@
33
source "https://rubygems.org/"
44

55
gemspec
6+
7+
# add steep and typeprof to development dependencies
8+
group :development do
9+
gem "steep", require: false
10+
gem "typeprof"
11+
end

Steepfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
D = Steep::Diagnostic
2+
3+
target :lib do
4+
signature "sig"
5+
check "lib" # Directory name to check
6+
7+
configure_code_diagnostics(D::Ruby.lenient) # `lenient` diagnostics setting
8+
end

0 commit comments

Comments
 (0)