Skip to content
This repository has been archived by the owner on Jun 28, 2019. It is now read-only.

Commit

Permalink
Add tox initialization.
Browse files Browse the repository at this point in the history
  • Loading branch information
nuk380y committed Jun 3, 2019
1 parent f16950f commit 3ebb02d
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
1 change: 0 additions & 1 deletion tests/test_stack_yaml.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import os
import pytest


def test_stack_functions(stack_data):
Expand Down
30 changes: 30 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
[tox]
minversion = 3.8.6
envlist =
lint

[testenv]
basepython = python3.7
passenv = *
setenv =
PYTHONDONTWRITEBYTECODE=1
commands_pre =
find {toxinidir} -type f -not -path '{toxinidir}/.tox/*' -path '*/__pycache__/*' -path '*/build/*' -name '*.py[c|o]' -delete
whitelist_externals =
find
bash
# Enabling sitepackages is needed if you need to avoid encountering exceptions
# caused by missing selinux python bindinds in ansible modules like template.
# Selinux python bindings are binary and they cannot be installed using pip
# in virtualenvs. Details: https://github.com/ansible/molecule/issues/1724
sitepackages = false

[flake8]
max-line-length = 90
max-complexity = 10

[testenv:lint]
deps = flake8>=3.6.0,<4
commands = flake8 tests
skip_install = true
usedevelop = false

0 comments on commit 3ebb02d

Please sign in to comment.