Skip to content

Commit 61bc2ab

Browse files
committed
Disable remaining pylint issue
Some pylint issues are not important and would make the examples less readable.
1 parent 6846d74 commit 61bc2ab

19 files changed

Lines changed: 37 additions & 4 deletions

examples/datacenter_example.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17+
# pylint: disable=pointless-string-statement,reimported,wrong-import-position
18+
1719
import os
1820
"""List Datacenters
1921
"""

examples/image_examples.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17+
# pylint: disable=pointless-string-statement,reimported,wrong-import-position
18+
1719
"""List Images
1820
"""
1921
from profitbricks.client import ProfitBricksService

examples/ipblock_examples.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17+
# pylint: disable=pointless-string-statement,reimported,wrong-import-position
18+
1719
import os
1820
"""List IPBlocks
1921
"""

examples/lan_example.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17+
# pylint: disable=pointless-string-statement,reimported,wrong-import-position
18+
1719
"""List LANs
1820
"""
1921
from profitbricks.client import ProfitBricksService

examples/nic_examples.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17+
# pylint: disable=pointless-string-statement,reimported,wrong-import-position
18+
1719
"""List NICs
1820
"""
1921
from profitbricks.client import ProfitBricksService

examples/pb_addNewServer.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
# See the License for the specific language governing permissions and
1616
# limitations under the License.
1717

18+
# pylint: disable=broad-except,global-variable-undefined
19+
1820
'''
1921
pb_addNewServer -- adds a new server to a data center
2022

examples/pb_controlServerState.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
# See the License for the specific language governing permissions and
1616
# limitations under the License.
1717

18+
# pylint: disable=broad-except,global-variable-undefined
19+
1820
'''
1921
pb_controlServerState -- control a server's state (start/stop)
2022

examples/pb_createDatacenter.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
# See the License for the specific language governing permissions and
1616
# limitations under the License.
1717

18+
# pylint: disable=global-variable-undefined
19+
1820
'''
1921
pb_createDatacenter is a sample script to create a complex datacenter.
2022
@@ -190,6 +192,7 @@ def create_datacenter_dict(pbclient, datacenter):
190192
This is copied from createDatacenter() and uses private methods.
191193
192194
"""
195+
# pylint: disable=protected-access
193196
server_items = []
194197
volume_items = []
195198
lan_items = []

examples/pb_datacenter_inventory.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
# See the License for the specific language governing permissions and
1616
# limitations under the License.
1717

18+
# pylint: disable=broad-except,global-statement
19+
1820
'''
1921
pb_datacenter_inventory -- dump inventory of your Profitbricks data centers to CSV files
2022

examples/pb_deleteServer.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
# See the License for the specific language governing permissions and
1616
# limitations under the License.
1717

18+
# pylint: disable=broad-except,global-variable-undefined
19+
1820
'''
1921
pb_deleteServer -- remove a server completely
2022

0 commit comments

Comments
 (0)