Skip to content

Commit 8db7b64

Browse files
committed
[build] create all:lint rake task to execute both format script and python tox
1 parent dbea695 commit 8db7b64

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Rakefile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1074,6 +1074,12 @@ namespace :all do
10741074
@git.push if %w[y yes].include?(response)
10751075
end
10761076

1077+
task :lint do
1078+
ext = /mswin|msys|mingw|cygwin|bccwin|wince|emc/.match?(RbConfig::CONFIG['host_os']) ? 'ps1' : 'sh'
1079+
sh "./scripts/format.#{ext}", verbose: true
1080+
Rake::Task['py:lint'].invoke
1081+
end
1082+
10771083
desc 'Update everything in preparation for a release'
10781084
task :prepare, [:version, :channel] do |_task, arguments|
10791085
chrome_channel = arguments[:channel] || 'Stable'
@@ -1252,7 +1258,7 @@ end
12521258

12531259
def update_changelog(version, language, path, changelog, header)
12541260
tag = previous_tag(version, language)
1255-
log = `git --no-pager log #{tag}...HEAD --pretty=format:">>> %B" --reverse #{path}`
1261+
log = `git --no-pager log #{tag}...HEAD --pretty=format:"--> %B" --reverse #{path}`
12561262
commits = log.split('>>>').map { |entry|
12571263
lines = entry.split("\n")
12581264
lines.reject! { |line| line.match?(/^(----|Co-authored|Signed-off)/) || line.empty? }

0 commit comments

Comments
 (0)