Skip to content
Permalink
Browse files

Fix tox.ini

- Fix ansible-lint tox environment to run on python3.
- Ignore '306' lint check
- Remove python36, python35, only test on python37 (standard)

Change-Id: I75000b21dc4562d443e41ac93473a152acb53fe4
Signed-off-by: Charles Short <chucks@redhat.com>
  • Loading branch information...
zulcss committed Oct 29, 2019
1 parent 5155cd8 commit c335d6439be5893d689ac5eb6ffa62f54db7160e
Showing with 4 additions and 11 deletions.
  1. +1 −0 .ansible-lint
  2. +1 −1 .pre-commit-config.yaml
  3. +2 −10 tox.ini
@@ -3,6 +3,7 @@ parseable: true
skip_list:
- '204' # [E204] Lines should be no longer than 120 chars
- '206' # [E206] Variables should have spaces before and after: {{ var_name }}
- '306'
- '405'
- '503' # [E503] Tasks that run when changed should likely be handlers
- '504'
@@ -9,7 +9,7 @@ repos:
- id: check-merge-conflict
- id: debug-statements
- repo: https://github.com/ansible/ansible-lint
rev: v4.0.1
rev: 49372c5c3822567f36a809b20e0273020f024ed7
hooks:
- id: ansible-lint
files: \.(yaml|yml)$
12 tox.ini
@@ -1,6 +1,6 @@
[tox]
minversion = 2.0
envlist = py27,py35,py36,py37,linters,dist,insights
minversion = 3.1.1
envlist = py27,py37,linters,dist,insights
skipsdist = True

[testenv]
@@ -55,14 +55,6 @@ commands = {posargs}
basepython = python2.7
commands = pytest {posargs}

[testenv:py35]
basepython = python3.5
commands = pytest {posargs}

[testenv:py36]
basepython = python3.6
commands = pytest {posargs}

[testenv:py37]
basepython = python3.7
commands = pytest {posargs}

0 comments on commit c335d64

Please sign in to comment.
You can’t perform that action at this time.