-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add steep infrastructure for testing type signatures
- added steep and rbs to gemspec - added type signature tests to github actions - updated Steepfile
- Loading branch information
Showing
4 changed files
with
30 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,31 @@ | ||
# D = Steep::Diagnostic | ||
# | ||
D = Steep::Diagnostic | ||
|
||
target :lib do | ||
signature "sig" | ||
signature "*.rbs" | ||
|
||
check "lib/unleash/client.rb" | ||
check "lib/unleash/context.rb" | ||
check "lib/unleash/scheduled_executor.rb" | ||
|
||
# check "lib/unleash/client.rbs" # Directory name | ||
check "lib" # Directory name | ||
# check "Gemfile" # File name | ||
# check "app/models/**/*.rb" # Glob | ||
# ignore "lib/templates/*.rb" | ||
ignore "lib/unleash/bootstrap" | ||
ignore "lib/unleash/strategy/*.rb" | ||
ignore "lib/unleash/util" | ||
|
||
ignore "lib/unleash/constraint.rb" | ||
ignore "lib/unleash/feature_toggle.rb" | ||
ignore "lib/unleash/metrics.rb" | ||
ignore "lib/unleash/metrics_reporter.rb" | ||
ignore "lib/unleash/toggle_fetcher.rb" | ||
ignore "lib/unleash/variant_definition.rb" | ||
ignore "lib/unleash/variant_override.rb" | ||
|
||
# library "pathname", "set" # Standard libraries | ||
# library "strong_json" # Gems | ||
|
||
# configure_code_diagnostics(D::Ruby.strict) # `strict` diagnostics setting | ||
# configure_code_diagnostics(D::Ruby.lenient) # `lenient` diagnostics setting | ||
# configure_code_diagnostics do |hash| # You can setup everything yourself | ||
# hash[D::Ruby::NoMethod] = :information | ||
# end | ||
configure_code_diagnostics do |hash| # You can setup everything yourself | ||
hash[D::Ruby::NoMethod] = :information | ||
hash[D::Ruby::UnsupportedSyntax] = :information | ||
end | ||
end | ||
|
||
# target :test do | ||
# # signature "sig", "sig-private" | ||
# # | ||
# check "spec" | ||
# # | ||
# # # library "pathname", "set" # Standard libraries | ||
# end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters