# make sure this version number is up-to-date
$style_config_version = '2.2.0'
desc "Install style config"
task :install_style_config do
FileUtils.rm_rf "bodylabs-python-style" if Dir.exists? "bodylabs-python-style"
raise unless system "git clone https://github.com/bodylabs/bodylabs-python-style.git"
Dir.chdir 'bodylabs-python-style' do
raise unless system "git checkout tags/#{$style_config_version}"
end
end
task :require_style_config do
Rake::Task[:install_style_config].invoke unless File.executable? 'bodylabs-python-style/bin/pylint_test'
end
task :lint => :require_style_config do
raise unless system "bodylabs-python-style/bin/pylint_test env_flag --min_rating 10.0"
end
This repository has been archived by the owner on May 15, 2020. It is now read-only.
forked from bodylabs/bodylabs-python-style
-
Notifications
You must be signed in to change notification settings - Fork 0
metabolize-forks/bodylabs-python-style
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Body Labs Python style
Resources
Stars
Watchers
Forks
Packages 0
No packages published
Languages
- Python 100.0%