Removing unused methods from RO module
[osm/RO.git] / tox.ini
diff --git a/tox.ini b/tox.ini
index 60fab11..42dfdc4 100644 (file)
--- a/tox.ini
+++ b/tox.ini
 #######################################################################################
 
 [tox]
-envlist = black, flake8, safety, cover
+envlist = black, cover, flake8, pylint, safety
 
 [tox:jenkins]
 toxworkdir = /tmp/.tox
+setenv = XDG_CACHE_HOME=/tmp/.cache
 
 [testenv]
 usedevelop = True
@@ -97,8 +98,8 @@ commands =
         # nose2 -C --coverage RO-SDN-ietfl2vpn/osm_rosdn_ietfl2vpn -s RO-SDN-ietfl2vpn/osm_rosdn_ietfl2vpn
         # sh -c 'mv .coverage .coverage_rosdn_ietfl2vpn'
         # RO-SDN-juniper_contrail
-        nose2 -C --coverage RO-SDN-juniper_contrail/osm_rosdn_juniper_contrail -s RO-SDN-juniper_contrail/osm_rosdn_juniper_contrail
-        sh -c 'mv .coverage .coverage_rosdn_juniper_contrail'
+        nose2 -C --coverage RO-SDN-juniper_contrail/osm_rosdn_juniper_contrail -s RO-SDN-juniper_contrail/osm_rosdn_juniper_contrail
+        sh -c 'mv .coverage .coverage_rosdn_juniper_contrail'
         # RO-SDN-odl_openflow
         # nose2 -C --coverage RO-SDN-odl_openflow/osm_rosdn_odlof -s RO-SDN-odl_openflow/osm_rosdn_odlof
         # sh -c 'mv .coverage .coverage_rosdn_odlof'
@@ -128,7 +129,7 @@ commands =
         # sh -c 'mv .coverage .coverage_rovim_gcp'
         # Combine results and generate reports
         # coverage combine .coverage_ng_ro .coverage_ro_plugin .coverage_rosdn_arista_cloudvision .coverage_rosdn_dpb .coverage_rosdn_dynpac .coverage_rosdn_floodlightof .coverage_rosdn_ietfl2vpn .coverage_rosdn_juniper_contrail .coverage_rosdn_odlof .coverage_rosdn_onos_vpls .coverage_rosdn_onosof .coverage_rovim_aws .coverage_rovim_azure .coverage_rovim_openvim .coverage_rovim_gcp # .coverage_rovim_openstack .coverage_rovim_vmware
-        coverage combine .coverage_ng_ro .coverage_rovim_openstack
+        coverage combine .coverage_ng_ro .coverage_rovim_openstack .coverage_rosdn_juniper_contrail
         coverage report --omit='*tests*'
         coverage html -d ./cover --omit='*tests*'
         coverage xml -o coverage.xml --omit='*tests*'
@@ -137,7 +138,7 @@ commands =
 #######################################################################################
 [testenv:flake8]
 deps =
-        flake8
+        flake8==5.0.4
         flake8-import-order
 skip_install = true
 commands =
@@ -169,23 +170,23 @@ deps =  {[testenv]deps}
         pylint
 skip_install = true
 commands =
-        - pylint -E NG-RO/osm_ng_ro
-        - pylint -E RO-plugin/osm_ro_plugin
-        - pylint -E RO-SDN-arista_cloudvision/osm_rosdn_arista_cloudvision
-        pylint -E RO-SDN-dpb/osm_rosdn_dpb
-        - pylint -E RO-SDN-dynpac/osm_rosdn_dynpac
-        pylint -E RO-SDN-floodlight_openflow/osm_rosdn_floodlightof
-        - pylint -E RO-SDN-ietfl2vpn/osm_rosdn_ietfl2vpn
-        pylint -E RO-SDN-juniper_contrail/osm_rosdn_juniper_contrail
-        pylint -E RO-SDN-odl_openflow/osm_rosdn_odlof
-        pylint -E RO-SDN-onos_openflow/osm_rosdn_onosof
-        - pylint -E RO-SDN-onos_vpls/osm_rosdn_onos_vpls
-        pylint -E RO-VIM-aws/osm_rovim_aws
-        - pylint -E RO-VIM-azure/osm_rovim_azure
-        - pylint -E RO-VIM-openstack/osm_rovim_openstack
-        - pylint -E RO-VIM-openvim/osm_rovim_openvim
-        - pylint -E RO-VIM-vmware/osm_rovim_vmware
-        - pylint -E RO-VIM-gcp/osm_rovim_gcp
+        pylint -E NG-RO/osm_ng_ro --disable=E1101
+        pylint -E RO-plugin/osm_ro_plugin --disable=E1101
+        pylint -E RO-SDN-arista_cloudvision/osm_rosdn_arista_cloudvision --disable=all
+        pylint -E RO-SDN-dpb/osm_rosdn_dpb
+        pylint -E RO-SDN-dynpac/osm_rosdn_dynpac --disable=E1101
+        pylint -E RO-SDN-floodlight_openflow/osm_rosdn_floodlightof
+        pylint -E RO-SDN-ietfl2vpn/osm_rosdn_ietfl2vpn --disable=E1101
+        pylint -E RO-SDN-juniper_contrail/osm_rosdn_juniper_contrail
+        pylint -E RO-SDN-odl_openflow/osm_rosdn_odlof
+        pylint -E RO-SDN-onos_openflow/osm_rosdn_onosof
+        pylint -E RO-SDN-onos_vpls/osm_rosdn_onos_vpls --disable=E1101
+        pylint -E RO-VIM-aws/osm_rovim_aws
+        pylint -E RO-VIM-azure/osm_rovim_azure --disable=all
+        pylint -E RO-VIM-openstack/osm_rovim_openstack --disable=E1101
+        pylint -E RO-VIM-openvim/osm_rovim_openvim --disable=all
+        pylint -E RO-VIM-vmware/osm_rovim_vmware --disable=all
+        pylint -E RO-VIM-gcp/osm_rovim_gcp --disable=E1101
 
 
 #######################################################################################
@@ -450,7 +451,8 @@ ignore =
         E125,
         E203,
         E226,
-        E241
+        E241,
+        E501,
 exclude =
         .git,
         __pycache__,