Skip to content

Commit 6d6d179

Browse files
koicandreibondarev
andauthored
Configure Linter for minimum Ruby version compatibility (#976)
Standard Ruby runs the linter using the runtime Ruby version by default, but developers may use any Ruby version supported by Langchain.rb. This means the linter should work correctly across all supported Ruby versions (3.1+), so it's best to specify the minimum supported version via the `ruby_version: 3.1` setting: https://github.com/standardrb/standard?tab=readme-ov-file#configuring-ruby_version For reference, the Ruby version used in GitHub Actions for linting is currently set to 3.2, so the linter is effectively running under Ruby 3.2 at the moment: https://github.com/patterns-ai-core/langchainrb/blob/0.19.4/.github/workflows/ci.yml#L56 Since the `ruby_version: 3.1` setting takes precedence over the runtime version, this patch would also address that concern. Co-authored-by: Andrei Bondarev <[email protected]>
1 parent 3624e4e commit 6d6d179

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.standard.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
ignore:
22
- "**/*":
33
- Style/ArgumentsForwarding
4+
5+
# Specify the minimum supported Ruby version supported by Langchain.rb.
6+
ruby_version: 3.1

0 commit comments

Comments
 (0)