mirror of
https://github.com/jtesta/ssh-audit.git
synced 2025-06-22 10:43:41 +02:00
Added Tox testing for Python 3.11. Fixed flake8 & pylint errors.
This commit is contained in:
28
tox.ini
28
tox.ini
@ -1,7 +1,7 @@
|
||||
[tox]
|
||||
envlist =
|
||||
py{py3}-{test,pylint,flake8,vulture}
|
||||
py{36,37,38,39,310}-{test,mypy,pylint,flake8,vulture}
|
||||
py{37,38,39,310,311}-{test,mypy,pylint,flake8,vulture}
|
||||
cov
|
||||
skip_missing_interpreters = true
|
||||
|
||||
@ -9,11 +9,11 @@ skip_missing_interpreters = true
|
||||
deps =
|
||||
test: pytest
|
||||
test,cov: {[testenv:cov]deps}
|
||||
test,py{36,37,38,39,310}-{type,mypy}: colorama
|
||||
py{36,37,38,39,310}-{type,mypy}: {[testenv:mypy]deps}
|
||||
py{py3,36,37,38,39,310}-{lint,pylint},lint: {[testenv:pylint]deps}
|
||||
py{py3,36,37,38,39,310}-{lint,flake8},lint: {[testenv:flake8]deps}
|
||||
py{py3,36,37,38,39,310}-{lint,vulture},lint: {[testenv:vulture]deps}
|
||||
test,py{37,38,39,310,311}-{type,mypy}: colorama
|
||||
py{37,38,39,310,311}-{type,mypy}: {[testenv:mypy]deps}
|
||||
py{py3,37,38,39,310,311}-{lint,pylint},lint: {[testenv:pylint]deps}
|
||||
py{py3,37,38,39,310,311}-{lint,flake8},lint: {[testenv:flake8]deps}
|
||||
py{py3,37,38,39,310,311}-{lint,vulture},lint: {[testenv:vulture]deps}
|
||||
setenv =
|
||||
SSHAUDIT = {toxinidir}/src
|
||||
test: COVERAGE_FILE = {toxinidir}/.coverage.{envname}
|
||||
@ -25,10 +25,10 @@ commands =
|
||||
test: coverage combine
|
||||
test: coverage report --show-missing
|
||||
test: coverage html -d {toxinidir}/reports/html/coverage.{envname}
|
||||
py{36,37,38,39,310}-{type,mypy}: {[testenv:mypy]commands}
|
||||
py{py3,36,37,38,39,310}-{lint,pylint},lint: {[testenv:pylint]commands}
|
||||
py{py3,36,37,38,39,310}-{lint,flake8},lint: {[testenv:flake8]commands}
|
||||
py{py3,36,37,38,39,310}-{lint,vulture},lint: {[testenv:vulture]commands}
|
||||
py{37,38,39,310,311}-{type,mypy}: {[testenv:mypy]commands}
|
||||
py{py3,37,38,39,310,311}-{lint,pylint},lint: {[testenv:pylint]commands}
|
||||
py{py3,37,38,39,310,311}-{lint,flake8},lint: {[testenv:flake8]commands}
|
||||
py{py3,37,38,39,310,311}-{lint,vulture},lint: {[testenv:vulture]commands}
|
||||
#ignore_outcome =
|
||||
# type: true
|
||||
# lint: true
|
||||
@ -125,10 +125,10 @@ ignore-long-lines = ^\s*(#\s+type:\s+.*|[A-Z0-9_]+\s+=\s+.*|('.*':\s+)?\[.*\],?|
|
||||
max-module-lines = 2500
|
||||
|
||||
[flake8]
|
||||
ignore =
|
||||
E241, # multiple spaces after operator; should be kept for tabular data
|
||||
E303, # too many blank lines
|
||||
E501, # line too long
|
||||
# E241 = multiple spaces after operator; should be kept for tabular data
|
||||
# E303 = too many blank lines
|
||||
# E501 = line too long
|
||||
ignore = E241, E303, E501
|
||||
|
||||
[pytest]
|
||||
junit_family = xunit1
|
||||
|
Reference in New Issue
Block a user