Skip to content
This repository has been archived by the owner on Oct 4, 2023. It is now read-only.

Commit

Permalink
Merge feeada7 into d8b2e83
Browse files Browse the repository at this point in the history
  • Loading branch information
HairyFotr committed Apr 8, 2017
2 parents d8b2e83 + feeada7 commit bfcc9fb
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 14 deletions.
24 changes: 17 additions & 7 deletions requirements-analysis.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ bandit
flake8
mastool
hacking
#Outdated - causes exceptions
#flake8-commas
pep8-naming
flake8-coding
flake8-debugger
flake8-pep3101
Expand All @@ -19,14 +18,25 @@ flake8-tuple
flake8-deprecated
flake8-builtins
flake8-mutable

# TODO
# demand manual import of "future" features
#flake8-future-import

flake8-builtins
flake8-debugger
flake8-mock
# Future
#flake8-commas # crashes, waiting for fix
#flake8-bugbear # python 3.5+
#flake8-pyi # lints .pyi files
#flake8-regex # custom regex checks
# Probably not
#flake8-future-import
#flake8-print
#flake8-blind-except
#flake8-quotes
#flake8-todo

#pylama?

pydiatra

vulture

radon
34 changes: 27 additions & 7 deletions run_analysis
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,38 @@ export PYTHONPATH=src/:$PYTHONPATH
. venv/bin/activate
pip install -r requirements-analysis.txt -U --pre

echo "Running pycodestyle and pydocstyle"
echo
echo "Running pycodestyle $(pycodestyle --version)"
pycodestyle --ignore=W503 src tests

echo
echo "Running pydocstyle $(pydocstyle --version)"
pydocstyle --ignore=D100,D101,D102,D103,D104,D212,D200,D205,D211,D400 src tests

echo "Running pyflakes"
echo
echo "Running pyflakes $(pyflakes --version)"
pyflakes src tests
echo "Running flake8"

echo
echo "Running flake8 $(flake8 --version)"
flake8 --ignore=W503,H101,H301,H306,H404,H405,M005,C101,C103,S001 src tests
echo "Running pydiatra"

echo
echo "Running pydiatra $(py2diatra --version)"
find src tests -name *.py | xargs py2diatra
echo "Running bandit"

echo
echo "Running vulture (dead code)"
vulture src

echo
echo "Running Radon $(radon -v 2>&1) (complexity)"
radon cc --total-average -nb src

echo
echo "Running $(bandit --version 2>&1) (security)"
bandit -r src
echo "Running bashate"
bashate run run_daemon run_analysis run_tests setup_venv

echo
echo "Running bashate (scripts)"
bashate run run_daemon run_analysis run_tests setup_venv

0 comments on commit bfcc9fb

Please sign in to comment.