<commit_before>#!/usr/bin/env bash

set -e

# python static analysis
prospector  --profile-path=. --profile=.prospector.yml --path=src --ignore-patterns=static --output-format=xunit > shippable/testresults/python.xml

# python tests
py.test --cov=src --cov-report=xml tests/<commit_msg>Updated shippable scripts to include bandit<commit_after>#!/usr/bin/env bash

set -e

# python static analysis
prospector  --profile-path=. --profile=.prospector.yml --path=src --ignore-patterns=static --output-format=xunit > shippable/testresults/python.xml

# python tests
py.test --cov=src --cov-report=xml tests/

# run bandit - A security linter from OpenStack Security
bandit -r src
{'fraction_non_alphanumeric': 0.13798219584569732, 'fraction_numerical': 0.0, 'mean_word_length': 4.037313432835821, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7429280', 'n_tokens_mistral': 226, 'n_tokens_neox': 219, 'n_words': 55}