forked from ansible-network/network-engine
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This create a non-voting job using tox to run our linters entry point. That in turn runs flake8 to validate our source is linted properly. Because this is a non-voting job, we don't actually fail as follow up patches will clean up the source code. Once done, we can make this job voting and gating. Signed-off-by: Paul Belanger <[email protected]>
- Loading branch information
1 parent
00e1d85
commit 853d1f6
Showing
4 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
*.swp | ||
*.swo | ||
*.bak | ||
.tox |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
- project: | ||
check: | ||
jobs: | ||
- tox-linters: | ||
voting: false | ||
gate: | ||
jobs: | ||
- noop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
flake8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
[tox] | ||
minversion = 1.4.2 | ||
envlist = docs,linters | ||
skipsdist = True | ||
|
||
[testenv] | ||
deps = -r{toxinidir}/test-requirements.txt | ||
|
||
[testenv:venv] | ||
commands = {posargs} | ||
|
||
[flake8] | ||
show-source = True | ||
ignore = E305,E402,E501,E722,E741,W503 | ||
builtins = _ | ||
exclude=.venv,.git,.tox,dist,doc,*egg,build | ||
|
||
[testenv:linters] | ||
setenv = | ||
ANSIBLE_ROLES_PATH = .. | ||
whitelist_externals = bash | ||
commands = | ||
# PEP8 Lint Check | ||
flake8 |