Skip to content
This repository has been archived by the owner on May 15, 2020. It is now read-only.

metabolize-forks/bodylabs-python-style

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

bodylabs-python-style

Usage

# 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

About

Body Labs Python style

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%