summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
fd666be)
The linter will check for issues in new and updated
files for a new commit
Issue-ID: OPTFRA-837
Signed-off-by: krishnaa96 <krishna.moorthy6@wipro.com>
Change-Id: I2e2c29753574cf8e37a65ec7a4a70bbb9f6cf50f
+envlist = py3, pylint, flake8diff
[testenv]
distribute = False
[testenv]
distribute = False
[testenv:py3]
basepython=python3.6
[testenv:py3]
basepython=python3.6
+
+[testenv:flake8diff]
+whitelist_externals=bash
+deps = hacking>=2.0.0
+commands =
+ bash -c "files=$(git diff HEAD^ HEAD --diff-filter=d --name-only | grep -E '(^apps\/|osdf\/|runtime\/)'| grep -E '*\.py$'); if [[ -z $files ]]; then exit 0; else flake8 $files; fi"
+
+[flake8]
+select = E,H,W,F
+max-line-length = 119
+ignore =
+per-file-ignores=