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

# Run pylint over the entire WMCore code base

set -x

# Setup the environment
source ./env_unittest.sh
pushd wmcore_unittest/WMCore
export PYTHONPATH=`pwd`/test/python:`pwd`/src/python:$PYTHONPATH


git checkout master
git pull origin

#pylint --rcfile=code/standards/.pylintrc -f parseable install/lib/python2.6/site-packages/* 2>&1 > pylint.txt || true
#ls -lR code

#pushd code
#git checkout `git rev-list -n 1 --before="2017-01-01 00:00" master`
#popd

pylint -j 2 --rcfile=standards/.pylintrc --output-format=parseable code/src/python/* code/test/python/* > pylint.txt || true

# For py3 compatibility

pylint --py3k -f parseable -d W1618 WMCore || true

<commit_msg>Add Pep-8 to full checker<commit_after>#!/usr/bin/env bash

# Run pylint over the entire WMCore code base

# Setup the environment
source ./env_unittest.sh
pushd wmcore_unittest/WMCore
export PYTHONPATH=`pwd`/test/python:`pwd`/src/python:$PYTHONPATH

set -x
pwd
git checkout master
git pull origin

#pylint --rcfile=code/standards/.pylintrc -f parseable install/lib/python2.6/site-packages/* 2>&1 > pylint.txt || true
#ls -lR code

#pushd code
#git checkout `git rev-list -n 1 --before="2017-01-01 00:00" master`
#popd

pylint -j 2 --rcfile=standards/.pylintrc --output-format=parseable .

# For py3 compatibility

pylint --py3k -f parseable -d W1618 .

echo "#! /usr/bin/env python" > ../pep8
cat `which pep8` >> ../pep8
chmod +x ../pep8

../pep8 .
{'fraction_non_alphanumeric': 0.1392318244170096, 'fraction_numerical': 0.037037037037037035, 'mean_word_length': 3.783606557377049, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '2259923', 'n_tokens_mistral': 602, 'n_tokens_neox': 564, 'n_words': 151}