No commit activity in last 3 years
No release in over 3 years
Pronto runner for ansible-lint.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 12.0
~> 3.4

Runtime

~> 0.9.5
>= 0.23.0, ~> 0.24
 Project Readme

Pronto runner for ansible-lint

Pronto runner for ansible-lint, a Python Style Guide Enforcer. What is Pronto?

Usage

  • gem install pronto-ansible_lint
  • pronto run
  • PRONTO_ANSIBLE_LINT_OPTS="-x 301" pronto run for passing CLI options to ansible-lint

Contribution Guidelines

Installation

git clone this repo and cd pronto-ansible_lint

Ruby

brew install cmake # or your OS equivalent
brew install rbenv # or your OS equivalent
rbenv install 2.4.5 # or newer
rbenv global 2.4.5 # or make it project specific
gem install bundle
gem install pronto
bundle install

Python

virtualenv venv # tested on Python 2.7 and 3.6
source venv/bin/activate
pip install -r requirements.txt

Make your changes

git checkout -b <new_feature>
# make your changes
bundle exec rspec
gem build pronto-ansible_lint.gemspec
gem install pronto-ansible_lint-<current_version>.gem # get current version from previous command
uncomment the lines in dummy_playbook/dummy.py
pronto run --unstaged

It should show

dummy_playbook/example.yml:9: [E301] [HIGH] Commands should not change things if nothing needs doing
dummy_playbook/example.yml:10: [E206] [LOW] Variables should have spaces before and after: {{ var_name }}
dummy_playbook/example.yml:12: [E301] [HIGH] Commands should not change things if nothing needs doing

Changelog

0.1.0 Initial public version. Based heavily on https://github.com/scoremedia/pronto-flake8