Skip to content

Commit b0f42c3

Browse files
committed
[build] add tasks to lint Python & Ruby
1 parent 886cdf5 commit b0f42c3

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Rakefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -643,6 +643,11 @@ namespace :py do
643643

644644
Rake::Task['py:changelog'].invoke
645645
end
646+
647+
desc 'Update Python Syntax'
648+
task :lint do
649+
`tox -c py/tox.ini -e linting`
650+
end
646651
end
647652

648653
def ruby_version
@@ -703,6 +708,11 @@ namespace :rb do
703708
Rake::Task['rb:changelog'].invoke unless new_version.include?('nightly')
704709
sh 'cd rb && bundle update'
705710
end
711+
712+
desc 'Update Ruby Syntax'
713+
task :lint do
714+
`cd rb && bundle exec rubocop -a`
715+
end
706716
end
707717

708718
def dotnet_version

0 commit comments

Comments
 (0)