<commit_before>language: python
python:
- "2.7"

install:
- pip install psutil # hack: fedmsg depends on psutil but it doesn't get installed properly
- pip install moksha # hack: fedmsg messes up its moksha dependency too
- python setup.py -q install

before_script:
- sudo mkdir -p /etc/fedimg/
- sudo cp fedimg-conf.toml.example /etc/fedimg/fedimg-conf.toml

script:
- python setup.py -q test<commit_msg>fedimg: Add flake8 test to travis<commit_after>language: python
python:
- "2.7"

install:
- pip install psutil # hack: fedmsg depends on psutil but it doesn't get installed properly
- pip install moksha # hack: fedmsg messes up its moksha dependency too
- python setup.py -q install

before_script:
- sudo mkdir -p /etc/fedimg/
- sudo cp fedimg-conf.toml.example /etc/fedimg/fedimg-conf.toml

script:
- python setup.py -q test
- flake8 fedimg
{'fraction_non_alphanumeric': 0.09433962264150944, 'fraction_numerical': 0.007075471698113208, 'mean_word_length': 3.8238636363636362, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '1938236', 'n_tokens_mistral': 294, 'n_tokens_neox': 287, 'n_words': 102}