| 1 |
[pyflakes] |
| 2 |
apt = pyflakes |
| 3 |
files = *.py |
| 4 |
types = text/x-python |
| 5 |
command = pyflakes {files} |
| 6 |
|
| 7 |
[pyflakes3] |
| 8 |
apt = pyflakes3 | pyflakes (<< 1.1.0-1) |
| 9 |
files = *.py |
| 10 |
types = text/x-python |
| 11 |
command = pyflakes3 {files} |
| 12 |
|
| 13 |
[pycodestyle] |
| 14 |
flags = style |
| 15 |
apt = pycodestyle |
| 16 |
files = *.py |
| 17 |
types = text/x-python |
| 18 |
command = pycodestyle --ignore W191 {files} |
| 19 |
|
| 20 |
[pydocstyle] |
| 21 |
flags = style |
| 22 |
apt = pydocstyle |
| 23 |
files = *.py |
| 24 |
types = text/x-python |
| 25 |
command = pydocstyle . |
| 26 |
|
| 27 |
[site-packages] |
| 28 |
command = grep -nHrw site-packages . |
| 29 |
|
| 30 |
[pythonpath] |
| 31 |
command = grep -nHrw PYTHONPATH . |
| 32 |
|
| 33 |
[environ-home] |
| 34 |
files = *.py |
| 35 |
types = text/x-python |
| 36 |
command = grep -nH 'environ *\[.HOME.\]' {files} |
| 37 |
|
| 38 |
[yaml-load] |
| 39 |
files = *.py |
| 40 |
types = text/x-python |
| 41 |
comment = These calls are potentially vulnerable to Python code injection |
| 42 |
command = grep -nHF 'yaml.load' {files} |
| 43 |
|
| 44 |
[pylint] |
| 45 |
apt = pylint |
| 46 |
files = *.py |
| 47 |
types = text/x-python |
| 48 |
command = pylint --rcfile=/dev/null --msg-template='{{path}}:{{line}}:{{column}}: [{{category}}:{{symbol}}] {{obj}}: {{msg}}' --reports=n {files} |
| 49 |
|
| 50 |
[pylint3] |
| 51 |
apt = pylint3 |
| 52 |
files = *.py |
| 53 |
types = text/x-python |
| 54 |
command = pylint3 --rcfile=/dev/null --msg-template='{{path}}:{{line}}:{{column}}: [{{category}}:{{symbol}}] {{obj}}: {{msg}}' --reports=n {files} |
| 55 |
|
| 56 |
[mypy] |
| 57 |
apt = mypy |
| 58 |
files = *.py |
| 59 |
types = text/x-python |
| 60 |
command = mypy --fast-parser {files} |
| 61 |
|
| 62 |
[pyroma] |
| 63 |
flags = dangerous fixme fixme-silent |
| 64 |
apt = python3-pyroma |
| 65 |
files = ./setup.py |
| 66 |
command = pyroma -d . |
| 67 |
|
| 68 |
[pyroma3] |
| 69 |
flags = dangerous fixme fixme-silent |
| 70 |
apt = python3-pyroma |
| 71 |
files = ./setup.py |
| 72 |
command = pyroma3 -d . |
| 73 |
|
| 74 |
[python2-bandit] |
| 75 |
flags = fixme fixme-silent |
| 76 |
apt = python3-bandit |
| 77 |
files = *.py |
| 78 |
types = text/x-python |
| 79 |
command = python2-bandit -r . |
| 80 |
|
| 81 |
[python3-bandit] |
| 82 |
flags = fixme fixme-silent |
| 83 |
apt = python3-bandit |
| 84 |
files = *.py |
| 85 |
types = text/x-python |
| 86 |
command = python3-bandit -r . |
| 87 |
|
| 88 |
[dodgy] |
| 89 |
flags = fixme fixme-silent |
| 90 |
apt = dodgy |
| 91 |
types = text/* |
| 92 |
command = dodgy |
| 93 |
|
| 94 |
[vulture] |
| 95 |
apt = vulture |
| 96 |
files = *.py |
| 97 |
command = vulture . |
| 98 |
|
| 99 |
# TODO: hacking |
| 100 |
# TODO: flake8 |
| 101 |
# TDOO: https://github.com/PyCQA/flake8-import-order |
| 102 |
# TODO: https://github.com/PyCQA/flake8-bugbear |
| 103 |
# TODO: https://github.com/stephenfin/flake8-asserts |
| 104 |
# TODO: pylint-celery |
| 105 |
# TODO: pylint-django |
| 106 |
# TODO: pylint-flask |
| 107 |
# TODO: frosted |
| 108 |
# TODO: pychecker (dangerous) |
| 109 |
# TODO: twistedchecker |
| 110 |
# TODO: pymetrics |
| 111 |
# TODO: prospector |
| 112 |
# TODO: pylama #779449 |
| 113 |
# TODO: python-debtcollector |
| 114 |
# TODO: python-afl |
| 115 |
# TODO: python3-requirements-detector |
| 116 |
# TODO: https://github.com/jlachowski/clonedigger |
| 117 |
# TODO: https://github.com/rubik/xenon |
| 118 |
# TODO: https://gcc-python-plugin.readthedocs.io/en/latest/cpychecker.html |
| 119 |
# TODO: http://jwilk.net/software/pydiatra |
| 120 |
# TODO: shell metacharacter injection: subprocess shell=True os.system os.popen popen2 commands |
| 121 |
# TODO: https://github.com/google/pytype |
| 122 |
# TODO: pep8-naming |
| 123 |
# TODO: https://github.com/mgedmin/check-manifest (dangerous) |
| 124 |
# TODO: https://github.com/python-security/pyt |
| 125 |
|
| 126 |
# vim:ft=dosini |