mirror of
https://github.com/jtesta/ssh-audit.git
synced 2024-11-24 03:21:40 +01:00
Removed vulture from Tox (it rarely made any findings, and when it did, pylint reported the same issues).
This commit is contained in:
parent
8190fe59d0
commit
d2f1a295a1
2
.github/workflows/tox.yaml
vendored
2
.github/workflows/tox.yaml
vendored
@ -18,7 +18,7 @@ jobs:
|
|||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install -U codecov coveralls flake8 mypy pylint pytest tox vulture
|
pip install -U codecov coveralls flake8 mypy pylint pytest tox
|
||||||
- name: Run Tox
|
- name: Run Tox
|
||||||
run: |
|
run: |
|
||||||
tox
|
tox
|
||||||
|
18
tox.ini
18
tox.ini
@ -1,7 +1,7 @@
|
|||||||
[tox]
|
[tox]
|
||||||
envlist =
|
envlist =
|
||||||
py{py3}-{test,pylint,flake8,vulture}
|
py{py3}-{test,pylint,flake8}
|
||||||
py{38,39,310,311,312}-{test,mypy,pylint,flake8,vulture}
|
py{38,39,310,311,312}-{test,mypy,pylint,flake8}
|
||||||
cov
|
cov
|
||||||
skip_missing_interpreters = true
|
skip_missing_interpreters = true
|
||||||
|
|
||||||
@ -13,7 +13,6 @@ deps =
|
|||||||
py{38,39,310,311,312}-{type,mypy}: {[testenv:mypy]deps}
|
py{38,39,310,311,312}-{type,mypy}: {[testenv:mypy]deps}
|
||||||
py{py3,38,39,310,311,312}-{lint,pylint},lint: {[testenv:pylint]deps}
|
py{py3,38,39,310,311,312}-{lint,pylint},lint: {[testenv:pylint]deps}
|
||||||
py{py3,38,39,310,311,312}-{lint,flake8},lint: {[testenv:flake8]deps}
|
py{py3,38,39,310,311,312}-{lint,flake8},lint: {[testenv:flake8]deps}
|
||||||
py{py3,38,39,310,311,312}-{lint,vulture},lint: {[testenv:vulture]deps}
|
|
||||||
setenv =
|
setenv =
|
||||||
SSHAUDIT = {toxinidir}/src
|
SSHAUDIT = {toxinidir}/src
|
||||||
test: COVERAGE_FILE = {toxinidir}/.coverage.{envname}
|
test: COVERAGE_FILE = {toxinidir}/.coverage.{envname}
|
||||||
@ -28,7 +27,7 @@ commands =
|
|||||||
py{38,39,310,311,312}-{type,mypy}: {[testenv:mypy]commands}
|
py{38,39,310,311,312}-{type,mypy}: {[testenv:mypy]commands}
|
||||||
py{py3,38,39,310,311,312}-{lint,pylint},lint: {[testenv:pylint]commands}
|
py{py3,38,39,310,311,312}-{lint,pylint},lint: {[testenv:pylint]commands}
|
||||||
py{py3,38,39,310,311,312}-{lint,flake8},lint: {[testenv:flake8]commands}
|
py{py3,38,39,310,311,312}-{lint,flake8},lint: {[testenv:flake8]commands}
|
||||||
py{py3,38,39,310,311,312}-{lint,vulture},lint: {[testenv:vulture]commands}
|
|
||||||
#ignore_outcome =
|
#ignore_outcome =
|
||||||
# type: true
|
# type: true
|
||||||
# lint: true
|
# lint: true
|
||||||
@ -75,17 +74,6 @@ deps =
|
|||||||
commands =
|
commands =
|
||||||
flake8 {posargs:{env:SSHAUDIT} {toxinidir}/setup.py {toxinidir}/test {toxinidir}/ssh-audit.py} --statistics
|
flake8 {posargs:{env:SSHAUDIT} {toxinidir}/setup.py {toxinidir}/test {toxinidir}/ssh-audit.py} --statistics
|
||||||
|
|
||||||
[testenv:vulture]
|
|
||||||
deps =
|
|
||||||
vulture
|
|
||||||
commands =
|
|
||||||
python -c "import sys; from subprocess import Popen, PIPE; \
|
|
||||||
a = ['vulture', '--min-confidence', '100'] + r'{posargs:{env:SSHAUDIT}}'.split(' '); \
|
|
||||||
o = Popen(a, shell=False, stdout=PIPE).communicate()[0]; \
|
|
||||||
l = [x for x in o.split(b'\n') if x and b'Unused import' not in x]; \
|
|
||||||
print(b'\n'.join(l).decode('utf-8')); \
|
|
||||||
sys.exit(1 if len(l) > 0 else 0)"
|
|
||||||
|
|
||||||
[pylint]
|
[pylint]
|
||||||
reports = no
|
reports = no
|
||||||
#output-format = colorized
|
#output-format = colorized
|
||||||
|
Loading…
Reference in New Issue
Block a user