#401 Run flake8/bandit on sources only
Merged 3 years ago by lsedlar. Opened 3 years ago by lsedlar.

file modified
+2 -2
@@ -24,14 +24,14 @@ 

  basepython = python3

  skip_install = true

  deps = flake8

- commands = flake8 --ignore E501,E731,W504 --exclude server/odcs/server/migrations/*,.tox/*,build/*,.env

+ commands = flake8 --ignore E501,E731,W504 --exclude server/odcs/server/migrations/*,.tox/*,build/*,.env client common server

  

  [testenv:bandit]

  basepython = python3

  skip_install = true

  deps = bandit

  commands =

-     /bin/bash -c "bandit -r -ll $(find . -mindepth 1 -maxdepth 1 ! -name tests ! -name \.\* -type d -o -name \*.py)"

+     /bin/bash -c "bandit -r -ll $(find client common server -mindepth 1 -maxdepth 1 ! -name tests ! -name \.\* -type d -o -name \*.py)"

  ignore_outcome = True

  

  [pytest]

Limit it to know subdirectories only. This change prevents linting in any virtualenv that may be present in the git checkout, and which would take ages to process.

rebased onto 380f30c

3 years ago

Pull-Request has been merged by lsedlar

3 years ago