Skip to content

Commit 3d85ce3

Browse files
authored
Merge branch 'master' into hayat01sh1da/python/introduce-mypy-typechecking
2 parents e074ea4 + 7bfacc4 commit 3d85ce3

3 files changed

Lines changed: 44 additions & 7 deletions

File tree

.github/workflows/ruby.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ on:
1919
- ruby/**/*.rbs
2020
- ruby/Gemfile
2121
- ruby/Gemfile.lock
22-
- ruby/rubocop.yml
23-
- ruby/rubocop_todo.yml
22+
- ruby/.rubocop.yml
23+
- ruby/.rubocop_todo.yml
2424
- ruby/Steepfile
2525
pull_request:
2626
paths:
@@ -31,8 +31,8 @@ on:
3131
- ruby/**/*.rbs
3232
- ruby/Gemfile
3333
- ruby/Gemfile.lock
34-
- ruby/rubocop.yml
35-
- ruby/rubocop_todo.yml
34+
- ruby/.rubocop.yml
35+
- ruby/.rubocop_todo.yml
3636
- ruby/Steepfile
3737

3838
permissions:
@@ -67,8 +67,8 @@ jobs:
6767
- ruby/**/*.rb
6868
- ruby/Gemfile
6969
- ruby/Gemfile.lock
70-
- ruby/rubocop.yml
71-
- ruby/rubocop_todo.yml
70+
- ruby/.rubocop.yml
71+
- ruby/.rubocop_todo.yml
7272
steep:
7373
- .github/actions/setup-ruby/action.yml
7474
- .github/workflows/ruby.yml

ruby/README.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,41 @@ asc
2323
Start exporting JSON data in ./json/settings.json
2424
Done export JSON data in ./json/settings.json 🎉
2525
```
26+
27+
## 4. Unit Test
28+
29+
```command
30+
$ ruby test/application_test.rb
31+
Run options: --seed 44849
32+
33+
# Running:
34+
35+
.....
36+
37+
Finished in 0.106035s, 47.1541 runs/s, 75.4466 assertions/s.
38+
39+
5 runs, 8 assertions, 0 failures, 0 errors, 0 skips
40+
```
41+
42+
## 5. Static Code Analysis
43+
44+
```command
45+
$ rubocop
46+
Inspecting 6 files
47+
......
48+
49+
6 files inspected, no offenses detected
50+
```
51+
52+
## 6. Type Checks
53+
54+
```command
55+
$ rbs-inline --output sig/generated/ .
56+
🎉 Generated 4 RBS files under sig/generated
57+
$ steep check
58+
# Type checking files:
59+
60+
........
61+
62+
No type error detected. 🧉
63+
```

ruby/src/application.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# rbs_inline: enabled
22

33
require 'json'
4-
require 'fileutils'
54

65
class Application
76
class InvalidFilenameError < StandardError; end

0 commit comments

Comments
 (0)